Closed Bug 523766 Opened 15 years ago Closed 15 years ago

NJ merge: move jump tables to allocator

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: graydon, Assigned: graydon)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

Attached patch house cleaningSplinter Review
The current jump-table code allocates its table in code pages via underrunProtect. This causes the maximum underrunProtect value to be set far too high in the i386 backend, which wastes space in the codeAlloc, and is also a little messy and potentially unsafe. Adobe doesn't want to take this hunk into nanojit and I'm inclined to agree.

The following patch moves the jump tables (which are just data) into the dataAlloc. In theory they could go in the traceAlloc but I think they're probably small and rare, and in any case we're not presently threading the traceAlloc through to the assembler; perhaps we should?

Passes trace-tests.
Attachment #407679 - Flags: review?(dmandelin)
Comment on attachment 407679 [details] [diff] [review]
house cleaning

Stealing. Very nice cleanup.
Attachment #407679 - Flags: review?(dmandelin) → review+
http://hg.mozilla.org/tracemonkey/rev/a8810e7752da
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/a8810e7752da
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: