Closed
Bug 509599
Opened 15 years ago
Closed 15 years ago
Arguments objects are not populated when leaving a function on trace
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: jorendorff, Assigned: dmandelin)
References
Details
Attachments
(1 file, 1 obsolete file)
2.74 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
function f(a) { x = arguments; } for (var i = 0; i < 9; i++) f(123); assertEq(x[0], 123); crasher.js:10: TypeError: Assertion failed: got (void 0), expected 123 In the interpreter, we call js_PutArgsObject when leaving a frame that has fp->argsobj (via JSStackFrame::putActivationObjects). On trace we need to do something like that too -- of course we know if there is an argsobj or not, so this is zero-cost in the fast case.
Assignee | ||
Comment 1•15 years ago
|
||
I already had the right feature in there, I just made a wrong assumption about which opcodes do and don't get run on function return. I'd like to add the test case after bug 505588, because then it's as simple as adding a new file and there are no nesting level change issues to worry about.
Reporter | ||
Comment 2•15 years ago
|
||
Comment on attachment 393673 [details] [diff] [review] Patch for checker bug Looks good.
Attachment #393673 -
Flags: review?(jorendorff) → review+
Comment 3•15 years ago
|
||
To david: This will badly conflict with the bug 495061. I hope that can be landed today. Could you use that bug as base?
Assignee | ||
Comment 4•15 years ago
|
||
(In reply to comment #3) > To david: > > This will badly conflict with the bug 495061. I hope that can be landed today. > Could you use that bug as base? Yes, this fix is conceptually very easy so it should not be hard to rebase.
Assignee | ||
Comment 5•15 years ago
|
||
Attachment #393673 -
Attachment is obsolete: true
Attachment #394585 -
Flags: review?(jorendorff)
Reporter | ||
Updated•15 years ago
|
Attachment #394585 -
Flags: review?(jorendorff) → review+
Comment 6•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/78d111c4ab84
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 7•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/a6b00f8b3a03
status1.9.2:
--- → beta1-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•