mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1500616 - The ARM64 Ion exception should work on non-simulator builds. r=tcampbell
This commit is contained in:
parent
5ebe7949ae
commit
9b410bc831
@ -216,6 +216,15 @@ GetBuildConfiguration(JSContext* cx, unsigned argc, Value* vp)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef JS_CODEGEN_ARM64
|
||||
value = BooleanValue(true);
|
||||
#else
|
||||
value = BooleanValue(false);
|
||||
#endif
|
||||
if (!JS_SetProperty(cx, info, "arm64", value)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef JS_SIMULATOR_ARM64
|
||||
value = BooleanValue(true);
|
||||
#else
|
||||
|
@ -12,7 +12,8 @@ function jitTogglesMatch(opts) {
|
||||
|
||||
// ARM64 does not yet have an Ion code generator, so return false if
|
||||
// ion.enable is requested.
|
||||
if (getBuildConfiguration()['arm64-simulator'] && opts['ion.enable'])
|
||||
var conf = getBuildConfiguration();
|
||||
if (conf['arm64'] && opts['ion.enable'])
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user