Closed Bug 1199143 Opened 9 years ago Closed 9 years ago

Inline heavyweight functions

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

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)

Attached patch Patch (obsolete) (deleted) — 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)
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).
Attached patch Patch (deleted) — Splinter Review
This one also removes TrackedOutcome::CantInlineHeavyweight.
Attachment #8653359 - Attachment is obsolete: true
Attachment #8653359 - Flags: review?(shu)
Attachment #8653363 - Flags: review?(shu)
Comment on attachment 8653359 [details] [diff] [review] Patch Review of attachment 8653359 [details] [diff] [review]: ----------------------------------------------------------------- A++++ would review again
Attachment #8653359 - Flags: review+
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+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Depends on: 1236098
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: