Closed Bug 686106 Opened 12 years ago Closed 12 years ago
JM: don't allocate an extra register for JSOP
_MUL if one operand is constant
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).
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+
Target Milestone: --- → mozilla9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.