Skip to content

Commit

Permalink
Add --jitPolicyScale support to Wasm compilation.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=261085
rdar://105178439

Reviewed by Alexey Shvayka.

During Options initialization, apply the jitPolicyScale to Wasm compilation thresholds.

* Source/JavaScriptCore/runtime/Options.cpp:
(JSC::scaleJITPolicy):

Canonical link: https://commits.webkit.org/267641@main
  • Loading branch information
Mark Lam committed Sep 5, 2023
1 parent 0945d4c commit 7369866
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/JavaScriptCore/runtime/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ static void scaleJITPolicy()
scaleOption(Options::thresholdForOptimizeSoon(), 1);
scaleOption(Options::thresholdForFTLOptimizeSoon(), 2);
scaleOption(Options::thresholdForFTLOptimizeAfterWarmUp(), 2);

scaleOption(Options::thresholdForBBQOptimizeAfterWarmUp(), 0);
scaleOption(Options::thresholdForBBQOptimizeSoon(), 0);
scaleOption(Options::thresholdForOMGOptimizeAfterWarmUp(), 1);
scaleOption(Options::thresholdForOMGOptimizeSoon(), 1);
}

static void overrideDefaults()
Expand Down

0 comments on commit 7369866

Please sign in to comment.