Closed
Bug 1207843
Opened 9 years ago
Closed 9 years ago
ARM: Clean up Imm8::EncodeImm() and friends
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: sstangl, Assigned: sstangl)
References
Details
Attachments
(3 files)
1.85 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
21.51 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
2.35 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
Bug in three parts: Part 1: Remove a bunch of dead code from ma_b(). Part 2: Fix spacing between functions in the ARM MacroAssembler. Part 3: Rewrite Imm8::EncodeImm() to favor readability instead of micro-optimization.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8665176 -
Flags: review?(hv1989)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8665177 -
Flags: review?(hv1989)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8665178 -
Flags: review?(hv1989)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sstangl
Updated•9 years ago
|
Attachment #8665177 -
Flags: review?(hv1989) → review+
Comment 4•9 years ago
|
||
Comment on attachment 8665178 [details] [diff] [review] 0003-Clean-up-ARM-Imm8-EncodeImm.patch Review of attachment 8665178 [details] [diff] [review]: ----------------------------------------------------------------- Not totally convinced this was needed. While it probably won't be noticeable, it is definitely slower. Also I don't think we found errors in this code explaining the need for rewrite. Though I agree it is easier to read and to know there are no bugs in it. And hey, the patch is already made ...
Attachment #8665178 -
Flags: review?(hv1989) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8665176 [details] [diff] [review] 0001-Clean-up-ma_b-void-target.patch Review of attachment 8665176 [details] [diff] [review]: ----------------------------------------------------------------- Can you give me a bit more context around this patch? Which patch(es) make this code obsolete for Assembler::B_MOVWT and Assembler::B_LDR_BX and why?
Updated•9 years ago
|
Flags: needinfo?(sstangl)
Comment 6•9 years ago
|
||
Comment on attachment 8665176 [details] [diff] [review] 0001-Clean-up-ma_b-void-target.patch Review of attachment 8665176 [details] [diff] [review]: ----------------------------------------------------------------- Can you give me a bit more context around this patch? Which patch(es) make this code obsolete for Assembler::B_MOVWT and Assembler::B_LDR_BX and why?
Attachment #8665176 -
Flags: review?(hv1989)
Assignee | ||
Comment 8•9 years ago
|
||
Those paths have been dead code for a very long time, since b_type(), used as the argument in the switch, is only ever B_LDR. The last bug to touch this code was bug 725584. Even before that patch, the vast majority of ma_b() was dead code. It has been dead code since before February 2012. Hopefully that is sufficient context. If you need more, it will be difficult to look up.
Flags: needinfo?(sstangl)
Assignee | ||
Updated•9 years ago
|
Attachment #8665176 -
Flags: review?(hv1989)
Comment 9•9 years ago
|
||
Comment on attachment 8665176 [details] [diff] [review] 0001-Clean-up-ma_b-void-target.patch Review of attachment 8665176 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the delay. Looks good to me. +1 for dead code removal. ::: js/src/jit/arm/MacroAssembler-arm.cpp @@ +1469,3 @@ > void > MacroAssemblerARM::ma_b(void* target, Relocation::Kind reloc, Assembler::Condition c) > { Can we remove the "Relocation::Kind reloc" argument which serves no purpose currently?
Attachment #8665176 -
Flags: review?(hv1989) → review+
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/fd8e682dd7de https://hg.mozilla.org/integration/mozilla-inbound/rev/2c189431cdf7 https://hg.mozilla.org/integration/mozilla-inbound/rev/c0ad95a1ec35
Comment 11•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fd8e682dd7de https://hg.mozilla.org/mozilla-central/rev/2c189431cdf7 https://hg.mozilla.org/mozilla-central/rev/c0ad95a1ec35
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•