зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1284056 - Baldr: initialize CompileArgs::alwaysBaseline (r=bbouvier)
MozReview-Commit-ID: Ehup1qxmBLI --HG-- extra : rebase_source : 7d42490023e875060924e262f3115339f7d4d491
This commit is contained in:
Родитель
9986326465
Коммит
5c84f14466
|
@ -1754,7 +1754,7 @@ class MOZ_STACK_CLASS ModuleValidator
|
|||
return false;
|
||||
|
||||
CompileArgs args;
|
||||
if (!args.assumptions.init(SignalUsage(cx_), cx_->buildIdOp()))
|
||||
if (!args.init(cx_))
|
||||
return false;
|
||||
|
||||
auto genData = MakeUnique<ModuleGeneratorData>(args.assumptions.usesSignal, ModuleKind::AsmJS);
|
||||
|
|
|
@ -1064,6 +1064,13 @@ DecodeUnknownSections(Decoder& d)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CompileArgs::init(ExclusiveContext* cx)
|
||||
{
|
||||
alwaysBaseline = cx->compartment()->runtimeFromAnyThread()->options().wasmAlwaysBaseline();
|
||||
return assumptions.init(SignalUsage(cx), cx->buildIdOp());
|
||||
}
|
||||
|
||||
UniqueModule
|
||||
wasm::Compile(Bytes&& bytecode, CompileArgs&& args, UniqueChars* error)
|
||||
{
|
||||
|
|
|
@ -36,6 +36,7 @@ struct CompileArgs
|
|||
bool alwaysBaseline;
|
||||
|
||||
CompileArgs() : alwaysBaseline(false) {}
|
||||
bool init(ExclusiveContext* cx);
|
||||
};
|
||||
|
||||
UniqueModule
|
||||
|
|
|
@ -123,7 +123,7 @@ wasm::Eval(JSContext* cx, Handle<TypedArrayObject*> code, HandleObject importObj
|
|||
return false;
|
||||
|
||||
CompileArgs compileArgs;
|
||||
if (!compileArgs.assumptions.init(SignalUsage(cx), cx->buildIdOp()))
|
||||
if (!compileArgs.init(cx))
|
||||
return true;
|
||||
|
||||
JS::AutoFilename af;
|
||||
|
@ -321,7 +321,7 @@ ModuleConstructor(JSContext* cx, unsigned argc, Value* vp)
|
|||
}
|
||||
|
||||
CompileArgs compileArgs;
|
||||
if (!compileArgs.assumptions.init(SignalUsage(cx), cx->buildIdOp()))
|
||||
if (!compileArgs.init(cx))
|
||||
return true;
|
||||
|
||||
JS::AutoFilename af;
|
||||
|
|
Загрузка…
Ссылка в новой задаче