Closed
Bug 1199143
Opened 9 years ago
Closed 9 years ago
Inline heavyweight functions
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
shu
:
review+
|
Details | Diff | Splinter Review |
It looks like we've never inlined heavyweight functions, but this restriction is probably from the JM days and not really necessary anymore.
There are plenty of heavyweight, small functions with lambdas where inlining is beneficial.
This should improve some of the sixspeed arrow-declare tests a lot. Locally it also wins at least a few hundred points on Octane earley-boyer.
Attachment #8653359 -
Flags: review?(shu)
Assignee | ||
Comment 1•9 years ago
|
||
Comment on attachment 8653359 [details] [diff] [review]
Patch
Review of attachment 8653359 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jit-test/tests/debug/optimized-out-01.js
@@ +26,5 @@
> };
>
> + g.eval("" + function f(d, x) {
> + "use strict";
> + eval("g(d, x)"); // `eval` to avoid inlining g.
I'll fix the indentation here to match the rest of the file (2 instead of 4 spaces).
Assignee | ||
Comment 2•9 years ago
|
||
This one also removes TrackedOutcome::CantInlineHeavyweight.
Attachment #8653359 -
Attachment is obsolete: true
Attachment #8653359 -
Flags: review?(shu)
Attachment #8653363 -
Flags: review?(shu)
Comment 3•9 years ago
|
||
Comment on attachment 8653359 [details] [diff] [review]
Patch
Review of attachment 8653359 [details] [diff] [review]:
-----------------------------------------------------------------
A++++ would review again
Attachment #8653359 -
Flags: review+
Comment 4•9 years ago
|
||
Comment on attachment 8653363 [details] [diff] [review]
Patch
Review of attachment 8653363 [details] [diff] [review]:
-----------------------------------------------------------------
A+++++ would also review again
Attachment #8653363 -
Flags: review?(shu) → review+
Comment 6•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•