Closed Bug 449999 Opened 16 years ago Closed 16 years ago

TM: Intern globals per context, not per tree.

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

References

Details

Attachments

(3 obsolete files)

Currently we lazily intern globals into the global frame per-tree. This makes it difficult to switch between trees since we have to unbox different globals onto the global frame.

Instead, track which global object is currently associated with the current context, and lazily add globals that any tree uses to a per-context list. All trees we activate unbox all globals in the list, allowing us to easily transition between trees without having to re-box or unbox any globals during said transition.
Blocks: landtm
This is a fix for 450535, but it doesn't solve the whole problem (449999) yet.

http://hg.mozilla.org/index.cgi/tracemonkey/rev/cad6ca9a1e79
Confirmed to fix yahoo.
Two additional fixes:

http://hg.mozilla.org/index.cgi/tracemonkey/rev/6c6266b8311c
http://hg.mozilla.org/index.cgi/tracemonkey/rev/735b68bb8168

Globals are still per-tree, but all corner cases are intercepted and we should be sound (albeit not optimal wrt speed).

I will keep working on the patch for the globals, but this is no longer an urgent blocker.
Status: NEW → ASSIGNED
Assignee: general → gal
Status: ASSIGNED → NEW
Attachment #333144 - Attachment is obsolete: true
Attached patch Almost working path. (obsolete) — Splinter Review
Current state. Passes trace-tests but fails math-partial.
Attached patch Updated patch against tip. (obsolete) — Splinter Review
Attachment #334492 - Attachment is obsolete: true
Pushed. Reviews + testing welcome.

http://hg.mozilla.org/index.cgi/tracemonkey/rev/fca2a565f6c1
http://hg.mozilla.org/index.cgi/tracemonkey/rev/ab683b57667d
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #334527 - Attachment is obsolete: true
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: