Closed
Bug 686106
Opened 13 years ago
Closed 13 years ago
JM: don't allocate an extra register for JSOP_MUL if one operand is constant
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: jandem, Assigned: jandem)
References
Details
(Keywords: perf)
Attachments
(1 file, 1 obsolete file)
5.25 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
Currently we allocate an extra register for JSOP_MUL if one operand is constant. We do this because (quote) "not all CPUs have multiplication on immediates"
GCC just generates a 3-operand IMUL instruction, and the x86, ARM and Sparc assemblers already support this (the ARM implementation uses a scratch register).
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #559675 -
Flags: review?(bhackett1024)
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #559675 -
Attachment is obsolete: true
Attachment #559675 -
Flags: review?(bhackett1024)
Attachment #559676 -
Flags: review?(bhackett1024)
Comment 3•13 years ago
|
||
Comment on attachment 559676 [details] [diff] [review]
Patch
Yeah, differences in the supported instruction set should be abstracted away by the assembler as much as possible (see also: AbsoluteAddress on x86 vs. x64).
Attachment #559676 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
Comment 5•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in
before you can comment on or make changes to this bug.
Description
•