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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → ehsan
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+
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
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: