Closed
Bug 989011
Opened 10 years ago
Closed 10 years ago
Factor this-computation for arrow functions out of JSOP_LAMBDA
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(1 file)
12.51 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
For arrow functions, js::Lambda currently uses ComputeThis to compute |this| for the current Baseline/interpreter frame. Computing |this| for Ion frames is a bit more complicated, see IonBuilder::jsop_this. It'd be nice if we could just emit JSOP_THIS followed by JSOP_LAMBDA_ARROW, this should also be more efficient for Baseline.
Assignee | ||
Comment 1•10 years ago
|
||
This patch adds JSOP_LAMBDA_ARROW and emits it for arrow functions. This op is always preceded by JSOP_THIS, this is nice because it means we get the (optimized) compute-this logic for free. Ion-compiling this op will be straight-forward. It should also be slightly faster, because we no longer need the GetTopBaselineFrame stuff etc.
Attachment #8398118 -
Flags: review?(jorendorff)
Comment 2•10 years ago
|
||
Comment on attachment 8398118 [details] [diff] [review] Patch Review of attachment 8398118 [details] [diff] [review]: ----------------------------------------------------------------- Looks good.
Attachment #8398118 -
Flags: review?(jorendorff) → review+
Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5caacc7b8fa5 Pushed to Try last week for bug 989204, 'twas green.
https://hg.mozilla.org/mozilla-central/rev/5caacc7b8fa5
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•