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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: jandem, Assigned: jandem)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

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).
Attached patch Patch (obsolete) — Splinter Review
Attachment #559675 - Flags: review?(bhackett1024)
Attached patch PatchSplinter Review
Attachment #559675 - Attachment is obsolete: true
Attachment #559675 - Flags: review?(bhackett1024)
Attachment #559676 - Flags: review?(bhackett1024)
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+
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
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.

Attachment

General

Created:
Updated:
Size: