Closed Bug 560423 Opened 15 years ago Closed 15 years ago

JM: Allocate registers for local variables

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dvander, Unassigned)

References

Details

Right now the register allocator in JM can only track the operation stack. This means a pattern like: GETLOCAL 0 GETLOCAL 1 ADD SETLOCAL 2 GETLOCAL 1 ADD Might look like (simplified): mov [ebx + LOCAL0], eax mov [ebx + LOCAL1], ecx add eax, ecx mov [ebx + LOCAL2], eax > mov [ebx + LOCAL1], ecx add eax, ecx The highlighted move is not necessary.
JM+fatval branch does this now.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.