mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1576254 - Update wasmForTrustedPrinciples to use a separate pref r=luke
Differential Revision: https://phabricator.services.mozilla.com/D47474 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
754ebbc4d7
commit
cac810aea7
@ -287,7 +287,7 @@ void LoadContextOptions(const char* aPrefName, void* /* aClosure */) {
|
||||
contextOptions.setAsmJS(GetWorkerPref<bool>(NS_LITERAL_CSTRING("asmjs")))
|
||||
.setWasm(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm")))
|
||||
.setWasmForTrustedPrinciples(
|
||||
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm")))
|
||||
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_trustedprincipals")))
|
||||
.setWasmBaseline(
|
||||
GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_baselinejit")))
|
||||
.setWasmIon(GetWorkerPref<bool>(NS_LITERAL_CSTRING("wasm_ionjit")))
|
||||
|
@ -896,6 +896,8 @@ static void ReloadPrefsCallback(const char* pref, XPCJSContext* xpccx) {
|
||||
|
||||
bool useAsmJS = Preferences::GetBool(JS_OPTIONS_DOT_STR "asmjs");
|
||||
bool useWasm = Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm");
|
||||
bool useWasmTrustedPrincipals =
|
||||
Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_trustedprincipals");
|
||||
bool useWasmIon = Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_ionjit");
|
||||
bool useWasmBaseline =
|
||||
Preferences::GetBool(JS_OPTIONS_DOT_STR "wasm_baselinejit");
|
||||
@ -957,7 +959,7 @@ static void ReloadPrefsCallback(const char* pref, XPCJSContext* xpccx) {
|
||||
JS::ContextOptionsRef(cx)
|
||||
.setAsmJS(useAsmJS)
|
||||
.setWasm(useWasm)
|
||||
.setWasmForTrustedPrinciples(useWasm)
|
||||
.setWasmForTrustedPrinciples(useWasmTrustedPrincipals)
|
||||
.setWasmIon(useWasmIon)
|
||||
.setWasmBaseline(useWasmBaseline)
|
||||
#ifdef ENABLE_WASM_CRANELIFT
|
||||
|
@ -1046,16 +1046,17 @@ pref("javascript.options.ion.threshold", 1000);
|
||||
pref("javascript.options.ion.full.threshold", 100000);
|
||||
// Duplicated in JitOptions - ensure both match.
|
||||
pref("javascript.options.ion.frequent_bailout_threshold", 10);
|
||||
pref("javascript.options.asmjs", true);
|
||||
pref("javascript.options.wasm", true);
|
||||
pref("javascript.options.wasm_verbose", false);
|
||||
pref("javascript.options.wasm_ionjit", true);
|
||||
pref("javascript.options.wasm_baselinejit", true);
|
||||
pref("javascript.options.asmjs", true);
|
||||
pref("javascript.options.wasm", true);
|
||||
pref("javascript.options.wasm_trustedprincipals", true);
|
||||
pref("javascript.options.wasm_verbose", false);
|
||||
pref("javascript.options.wasm_ionjit", true);
|
||||
pref("javascript.options.wasm_baselinejit", true);
|
||||
#ifdef ENABLE_WASM_CRANELIFT
|
||||
pref("javascript.options.wasm_cranelift", false);
|
||||
pref("javascript.options.wasm_cranelift", false);
|
||||
#endif
|
||||
#ifdef ENABLE_WASM_REFTYPES
|
||||
pref("javascript.options.wasm_gc", false);
|
||||
pref("javascript.options.wasm_gc", false);
|
||||
#endif
|
||||
pref("javascript.options.native_regexp", true);
|
||||
pref("javascript.options.parallel_parsing", true);
|
||||
|
Loading…
Reference in New Issue
Block a user