Closed
Bug 892931
Opened 11 years ago
Closed 11 years ago
IonMonkey: CallKnown: Don't emit slow path if callee can't be Ion-compiled but can be Baseline-compiled
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: jandem, Assigned: jandem)
Details
Attachments
(1 file)
1.11 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
CallKnown emits a slow path if the callee can't be Ion-compiled. However, nowadays we can also call into Baseline scripts using the same code so going through the VM in this case is no longer necessary in most cases (since Baseline compiles almost everything). Here's a simple micro-benchmark: function g() { try { } catch(e) {} return 3; } function f() { for (var i=0; i<10000000; i++) g(); } var t = new Date; f(); print(new Date - t); Before: 1747 ms After : 98 ms (Noticed this while looking at some fuzz bug.)
Attachment #774576 -
Flags: review?(hv1989)
Comment 1•11 years ago
|
||
Comment on attachment 774576 [details] [diff] [review] Patch Review of attachment 774576 [details] [diff] [review]: ----------------------------------------------------------------- Nice catch !!
Attachment #774576 -
Flags: review?(hv1989) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Thanks for another quick review! https://hg.mozilla.org/integration/mozilla-inbound/rev/d1f17915555b
Comment 3•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d1f17915555b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•