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)

Other Branch
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jorendorff, Assigned: jorendorff)

References

Details

(Keywords: verified1.9.1, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

../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.
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
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.)
Blocks: 472553
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
Attached patch v1Splinter Review
Assignee: general → jorendorff
Status: NEW → ASSIGNED
Attachment #362922 - Flags: review?(mrbkap)
Attachment #362922 - Flags: review?(mrbkap) → review+
http://hg.mozilla.org/tracemonkey/rev/ad3cd0759495
Whiteboard: fixed-in-tracemonkey
Flags: blocking1.9.1?
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P1
http://hg.mozilla.org/mozilla-central/rev/ad3cd0759495
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
 v 1.9.1 - the stack analysis on tracemonkey is green.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: