Closed
Bug 477143
Opened 15 years ago
Closed 15 years ago
jsstack.js static analysis error in js_GetPropertyHelper
Categories
(Core :: JavaScript Engine, defect, P1)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jorendorff, Assigned: jorendorff)
References
Details
(Keywords: verified1.9.1, Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
3.28 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
../jsobj.cpp: In function ‘JSBool js_GetPropertyHelper(JSContext*, JSObject*, jsid, jsval*, JSPropCacheEntry**)’: ../jsobj.cpp:4011: error: cannot call JS_REQUIRES_STACK function Detecting At this precise moment, it's unclear to me that the new code there is correct, even though I reviewed it myself just a day or two ago. But anyway I don't think it's necessary for Detecting to read cx->fp->script, given JSOP_STOP, so we can just rip that part out. If so, that's an easy fix, I'll post tomorrow.
Comment 1•15 years ago
|
||
JSOP_STOP FTW!
Sorry, exactly what new code do you mean here?
> At this precise moment, it's unclear to me that the new code there is correct,
/be
Assignee | ||
Comment 2•15 years ago
|
||
Detecting does need cx->fp->script to read atoms, to check for `name undefined`. So this is not an easy fix. (But Detecting does not need to calculate pcend, so the code could be a bit simpler.)
Comment 3•15 years ago
|
||
Maybe it's time to pull DETECTING back from the API and make the hack be based on name advice: 'all' and only all in a detecting context (the compiler can see these). I know this was mentioned in another bug, but I can't find it now. Anyhoo if we can fix both this bug and improve detecting not to need cx->fp so much the better. /be
Assignee | ||
Comment 4•15 years ago
|
||
Updated•15 years ago
|
Attachment #362922 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 5•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/ad3cd0759495
Whiteboard: fixed-in-tracemonkey
Assignee | ||
Updated•15 years ago
|
Flags: blocking1.9.1?
Updated•15 years ago
|
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P1
Comment 6•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/2d121da4f43e
Keywords: fixed1.9.1
Comment 7•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/ad3cd0759495
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Flags: in-testsuite+
Comment 8•15 years ago
|
||
v 1.9.1 - the stack analysis on tracemonkey is green.
Keywords: fixed1.9.1 → verified1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•