Closed Bug 797129 Opened 13 years ago Closed 13 years ago

Root UncachedInlineCall in JM

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

Pair of unrooted vars.
Attachment #667162 - Flags: review?(terrence)
Comment on attachment 667162 [details] [diff] [review] Small JM rooting fix Review of attachment 667162 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/methodjit/InvokeHelpers.cpp @@ +279,5 @@ > { > JSContext *cx = f.cx; > CallArgs args = CallArgsFromSp(argc, f.regs.sp); > + RootedFunction newfun(cx, args.callee().toFunction()); > + HandleScript newscript = newfun->script(); I think I have this hunk. I'm currently changing JSFunction::script() to return a Return<JSScript*>, since Nick made me aware of the potential lifetime issues. Go ahead and get this in if you need it: I'll rebase.
Attachment #667162 - Flags: review?(terrence) → review+
Cleaning up bugs. I won't be committing this, I'll wait for terrence's commit.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: