Closed
Bug 1330188
Opened 9 years ago
Closed 9 years ago
Add hidden prefs for adjusting the baseline and ion JIT thresholds
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla53
| Tracking | Status | |
|---|---|---|
| firefox53 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file)
|
3.17 KB,
patch
|
sstangl
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8825624 -
Flags: review?(sstangl)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ehsan
Comment 2•9 years ago
|
||
Comment on attachment 8825624 [details] [diff] [review]
Add hidden prefs for adjusting the baseline and ion JIT thresholds
Review of attachment 8825624 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with priority change.
::: js/xpconnect/src/XPCJSContext.cpp
@@ +1500,5 @@
> + JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_BASELINE_WARMUP_TRIGGER,
> + baselineThreshold);
> + } else {
> + JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_BASELINE_WARMUP_TRIGGER,
> + useBaselineEager ? 0 : -1);
I would expect "useBaselineEager" and "useIonEager" to override "baselineThreshold" and "ionThreshold", respectively.
Therefore, I would suggest:
> JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_BASELINE_WARMUP_TRIGGER, useBaselineEager ? 0 : baselineThreshold);
With no need for a branch on baselineThreshold, since it is -1 by default. Similar for the Ion case.
Attachment #8825624 -
Flags: review?(sstangl) → review+
| Assignee | ||
Comment 3•9 years ago
|
||
Sounds good, will do!
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/94d83309b443
Add hidden prefs for adjusting the baseline and ion JIT thresholds; r=sstangl
Comment 5•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in
before you can comment on or make changes to this bug.
Description
•