зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1566332 part 1 - Add DefaultJitOptions::setEagerBaselineCompilation() and use it in a few places. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D38276 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d0cb127dad
Коммит
7c250086a4
|
@ -287,8 +287,13 @@ bool DefaultJitOptions::isSmallFunction(JSScript* script) const {
|
|||
|
||||
void DefaultJitOptions::enableGvn(bool enable) { disableGvn = !enable; }
|
||||
|
||||
void DefaultJitOptions::setEagerIonCompilation() {
|
||||
void DefaultJitOptions::setEagerBaselineCompilation() {
|
||||
baselineInterpreterWarmUpThreshold = 0;
|
||||
baselineWarmUpThreshold = 0;
|
||||
}
|
||||
|
||||
void DefaultJitOptions::setEagerIonCompilation() {
|
||||
setEagerBaselineCompilation();
|
||||
normalIonWarmUpThreshold = 0;
|
||||
fullIonWarmUpThreshold = 0;
|
||||
}
|
||||
|
|
|
@ -117,6 +117,7 @@ struct DefaultJitOptions {
|
|||
|
||||
DefaultJitOptions();
|
||||
bool isSmallFunction(JSScript* script) const;
|
||||
void setEagerBaselineCompilation();
|
||||
void setEagerIonCompilation();
|
||||
void setNormalIonWarmUpThreshold(uint32_t warmUpThreshold);
|
||||
void setFullIonWarmUpThreshold(uint32_t warmUpThreshold);
|
||||
|
|
|
@ -10404,8 +10404,7 @@ static bool SetContextOptions(JSContext* cx, const OptionParser& op) {
|
|||
}
|
||||
|
||||
if (op.getBoolOption("baseline-eager")) {
|
||||
jit::JitOptions.baselineInterpreterWarmUpThreshold = 0;
|
||||
jit::JitOptions.baselineWarmUpThreshold = 0;
|
||||
jit::JitOptions.setEagerBaselineCompilation();
|
||||
}
|
||||
|
||||
if (op.getBoolOption("blinterp")) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче