Closed
Bug 517640
Opened 15 years ago
Closed 15 years ago
TM: we don't substitute the global object for apply(null, ...)
Categories
(Core :: JavaScript Engine, defect, P1)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: gal, Assigned: gal)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
821 bytes,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•15 years ago
|
||
function f() { } for (var i = 0; i < 10; ++i) f.apply(null); This aborts trace right now. We could run a quick imacro that pops the null and pushes the global object (maybe JSOP_GLOBAL)? If we do it before we unpack the arguments, we could use 1 imacro instead of 8 for the individual argument lengths we support. But then if we fall off trace there is a global object where a null should be. Thats a bit odd. It should be effect-free though when the interpreter resumes.
Assignee | ||
Updated•15 years ago
|
Flags: blocking1.9.2?
Assignee | ||
Comment 2•15 years ago
|
||
Actually, this minimal fix should be sufficient.
Assignee: general → gal
Updated•15 years ago
|
Flags: blocking1.9.2? → blocking1.9.2+
Updated•15 years ago
|
Priority: -- → P2
Updated•15 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 3•15 years ago
|
||
This is perf, not correctness. bz, can you try this?
Comment 4•15 years ago
|
||
Makes the abort go away. Doesn't help my testcase on its own, since we hit other aborts (due to inner trees trying to grow) instead...
Assignee | ||
Updated•15 years ago
|
Attachment #401651 -
Flags: review?(mrbkap)
Assignee | ||
Comment 5•15 years ago
|
||
Comment on attachment 401651 [details] [diff] [review] minimal fix Well its a step in the right direction.
Updated•15 years ago
|
Attachment #401651 -
Flags: review?(mrbkap) → review+
Comment 7•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/8d90c8c461e8
Keywords: checkin-needed
Whiteboard: [fixed in tracemonkey]
Updated•15 years ago
|
Whiteboard: [fixed in tracemonkey] → fixed-in-tracemonkey
Comment 8•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/8d90c8c461e8
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 9•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/13e613dc1d51
status1.9.2:
--- → beta1-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•