зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 1b9f4cb229fa (bug 1523015) arm64 bustages
This commit is contained in:
Родитель
ce64d00a94
Коммит
75e2827f6a
|
@ -9,6 +9,13 @@ function jitTogglesMatch(opts) {
|
|||
if (k.indexOf(".enable") > 0 && opts[k] != currentOpts[k])
|
||||
return false;
|
||||
}
|
||||
|
||||
// ARM64 does not yet have an Ion code generator, so return false if
|
||||
// ion.enable is requested.
|
||||
var conf = getBuildConfiguration();
|
||||
if (conf['arm64'] && opts['ion.enable'])
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,8 @@ void LinkIonScript(JSContext* cx, HandleScript calleescript);
|
|||
uint8_t* LazyLinkTopActivation(JSContext* cx, LazyLinkExitFrameLayout* frame);
|
||||
|
||||
static inline bool IsIonEnabled(JSContext* cx) {
|
||||
#if defined(JS_CODEGEN_NONE)
|
||||
// The ARM64 Ion engine is not yet implemented.
|
||||
#if defined(JS_CODEGEN_NONE) || defined(JS_CODEGEN_ARM64)
|
||||
return false;
|
||||
#else
|
||||
return cx->options().ion() && cx->options().baseline() &&
|
||||
|
|
|
@ -9843,25 +9843,14 @@ static MOZ_MUST_USE bool ProcessArgs(JSContext* cx, OptionParser* op) {
|
|||
|
||||
static bool SetContextOptions(JSContext* cx, const OptionParser& op) {
|
||||
enableBaseline = !op.getBoolOption("no-baseline");
|
||||
#ifdef JS_CODEGEN_ARM64
|
||||
// TODO: Enable Ion by default.
|
||||
enableIon = false;
|
||||
enableAsmJS = false;
|
||||
#else
|
||||
enableIon = !op.getBoolOption("no-ion");
|
||||
enableAsmJS = !op.getBoolOption("no-asmjs");
|
||||
#endif
|
||||
enableNativeRegExp = !op.getBoolOption("no-native-regexp");
|
||||
|
||||
// Default values for wasm.
|
||||
enableWasm = true;
|
||||
enableWasmBaseline = true;
|
||||
#ifdef JS_CODEGEN_ARM64
|
||||
// TODO: Enable WasmIon by default.
|
||||
enableWasmIon = false;
|
||||
#else
|
||||
enableWasmIon = true;
|
||||
#endif
|
||||
if (const char* str = op.getStringOption("wasm-compiler")) {
|
||||
if (strcmp(str, "none") == 0) {
|
||||
enableWasm = false;
|
||||
|
|
|
@ -1462,11 +1462,7 @@ pref("javascript.options.unboxed_objects", false);
|
|||
pref("javascript.options.baselinejit", true);
|
||||
//Duplicated in JitOptions - ensure both match.
|
||||
pref("javascript.options.baselinejit.threshold", 10);
|
||||
#ifdef _ARM64_
|
||||
pref("javascript.options.ion", false);
|
||||
#else
|
||||
pref("javascript.options.ion", true);
|
||||
#endif
|
||||
//Duplicated in JitOptions - ensure both match.
|
||||
pref("javascript.options.ion.threshold", 1000);
|
||||
//Duplicated in JitOptions - ensure both match.
|
||||
|
|
Загрузка…
Ссылка в новой задаче