Closed Bug 1284441 Opened 8 years ago Closed 8 years ago

Remove unnecessary cast from ExpressionDecompiler::decompilePC.

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: arai, Assigned: jj, Mentored)

Details

Attachments

(1 file, 3 obsolete files)

https://dxr.mozilla.org/mozilla-central/rev/c9a70b64f2faa264296f0cc90d68a2ee2bac6ac5/js/src/jsopcode.cpp#1216
>         return decompilePCForStackOperand(pc, -int32_t(3)) &&

The cast there should be removed.
Hey
I'll work on this bug. Can you assign this to me?
Thanks!
Assignee: nobody → arctgarg
Attached patch a1.diff (obsolete) — Splinter Review
Does this help in fixing?
Flags: needinfo?(arai.unmht)
Attachment #8773516 - Flags: review?(arai.unmht)
Comment on attachment 8773516 [details] [diff] [review]
a1.diff

Review of attachment 8773516 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you Jinank :D
Attachment #8773516 - Flags: review?(arai.unmht) → review+
Re-assigning to Jinank.

:archit, if you're looking for a bug to work on, feel free to ping me ;)
Assignee: arctgarg → jinank94
Status: NEW → ASSIGNED
Flags: needinfo?(arai.unmht)
Sorry, I overlooked the commit message.
Can you set appropriate commit message that follows the rule in this document, and re-post it?
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Committing_Rules_and_Responsibilities#Checkin_comment

After that, set "checkin-needed" keyword to this bug, or ni? me if you cannot.
Flags: needinfo?(arai.unmht) → needinfo?(jinank94)
Attached patch a2.diff (obsolete) — Splinter Review
Attachment #8773516 - Attachment is obsolete: true
Flags: needinfo?(jinank94)
Attachment #8773779 - Flags: review?(arai.unmht)
Attachment #8773779 - Flags: checkin+
Keywords: checkin-needed
Comment on attachment 8773779 [details] [diff] [review]
a2.diff

Review of attachment 8773779 [details] [diff] [review]:
-----------------------------------------------------------------

Please remove "[mq]: bug1284441" part from commit message.

Also "checkin+" means the patch have already checked in, so you don't need to touch the flag.
Attachment #8773779 - Flags: review?(arai.unmht)
Attachment #8773779 - Flags: feedback+
Attachment #8773779 - Flags: checkin+
Keywords: checkin-needed
Flags: needinfo?(jinank94)
Attached patch a2.diff (obsolete) — Splinter Review
Attachment #8773779 - Attachment is obsolete: true
Flags: needinfo?(jinank94)
Attachment #8773913 - Flags: review?(arai.unmht)
Comment on attachment 8773913 [details] [diff] [review]
a2.diff

Review of attachment 8773913 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, the commit message is now okay, however, somehow the patch file is corrupted.

> @@ -1213,7 +1213,7 @@ ExpressionDecompiler::decompilePC(jsbyte
>          return decompilePCForStackOperand(pc, -int32_t(GET_ARGC(pc) + 2)) &&
>                          write("(...)");
>                                 case JSOP_SPREADCALL:
>                                 -        return decompilePCForStackOperand(pc, -int32_t(3)) &&
>                                 +        return decompilePCForStackOperand(pc, -3) &&
>                                                 write("(...)");
>                                                        case JSOP_NEWARRAY:
>                                                                 return write("[]");)

So, please discard this patch, and import attachment 8773779 [details] [diff] [review] again, then modify the commit message with the following command:

hg qref -m 'Bug 1284441 - Remove unnecessary cast from ExpressionDecompiler::decompilePC. r=arai'
Attachment #8773913 - Flags: review?(arai.unmht)
Attached patch a2.diffSplinter Review
Attachment #8773913 - Attachment is obsolete: true
Attachment #8773921 - Flags: review?(arai.unmht)
Comment on attachment 8773921 [details] [diff] [review]
a2.diff

Review of attachment 8773921 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, perfect!
Attachment #8773921 - Flags: review?(arai.unmht) → review+
Keywords: checkin-needed
(In reply to Tooru Fujisawa [:arai] from comment #13)
> Comment on attachment 8773921 [details] [diff] [review]
> a2.diff
> 
> Review of attachment 8773921 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Thanks, perfect!

Any other bugs that I could work on?
Flags: needinfo?(arai.unmht)
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/850f1a2a24cf
Remove unnecessary cast from ExpressionDecompiler::decompilePC. r=arai
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
1) This bug isn't invalid or you presumably wouldn't have made a patch for it.
2) Bugs get resolved automatically once the patch is merged to mozilla-central, so please don't manually close out the bug without a good reason for doing so.

Thanks for the patch!
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
(In reply to Jinank Jain from comment #14)
> Any other bugs that I could work on?

how about bug 1020571 ?
Flags: needinfo?(arai.unmht)
https://hg.mozilla.org/mozilla-central/rev/850f1a2a24cf
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
(In reply to Tooru Fujisawa [:arai] from comment #17)
> (In reply to Jinank Jain from comment #14)
> > Any other bugs that I could work on?
> 
> how about bug 1020571 ?

This bugs seems to be fixed by ICU team then mozilla would just take that patch from there.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: