Closed Bug 967649 Opened 11 years ago Closed 11 years ago

Enable baseline compilation for with statements

Categories

(Core :: JavaScript Engine: JIT, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: wingo, Assigned: wingo)

References

Details

Attachments

(1 file)

With is bad, but this patch is small, so...
Assignee: nobody → wingo
Comment on attachment 8370169 [details] [diff] [review] Enable baseline compilation for with statements Depends on bug 966912, which is ready to check in once the tree opens.
Attachment #8370169 - Flags: review?(jdemooij)
Comment on attachment 8370169 [details] [diff] [review] Enable baseline compilation for with statements Review of attachment 8370169 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks! ::: js/src/jit/VMFunctions.cpp @@ +933,5 @@ > > bool > +EnterWith(JSContext *cx, BaselineFrame *frame, HandleValue val, Handle<StaticWithObject *> templ) > +{ > + RootedObject obj(cx); Can you rename the EnterWith in Interpreter.cpp to EnterWithOperation (see also DefFunOperation, ImplicitThisOperation, etc) and do: return EnterWithOperation(cx, frame, val, templ); here? It's not a lot of code but it'd be nice to share it with the interpreter.
Attachment #8370169 - Flags: review?(jdemooij) → review+
Flags: in-testsuite+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: