Bug 1516915 - Add 'arm' (ie ARM-32 codegen) to the build configuration object. r=jandem
authorLars T Hansen <lhansen@mozilla.com>
Wed, 02 Jan 2019 11:24:52 +0100
changeset 509532 f391e2edd0f904993cf7e04f6b063ff6def6625c
parent 509514 5ad9c5b505d3e84d4db7e242d53b881b967a2ffc
child 509533 00ff999d70b351e37c404ee4e1cab6f8cf9cfe43
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1516915
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1516915 - Add 'arm' (ie ARM-32 codegen) to the build configuration object. r=jandem Since we already have 'arm-simulator' meaning the emulator for ARM-32, let's have 'arm' mean that the jits are generating code for ARM-32. Thus arm && !arm-simulator means we're running on real hardware.
js/src/builtin/TestingFunctions.cpp
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -197,16 +197,25 @@ static bool GetBuildConfiguration(JSCont
   value = BooleanValue(true);
 #else
   value = BooleanValue(false);
 #endif
   if (!JS_SetProperty(cx, info, "x64", value)) {
     return false;
   }
 
+#ifdef JS_CODEGEN_ARM
+  value = BooleanValue(true);
+#else
+  value = BooleanValue(false);
+#endif
+  if (!JS_SetProperty(cx, info, "arm", value)) {
+    return false;
+  }
+
 #ifdef JS_SIMULATOR_ARM
   value = BooleanValue(true);
 #else
   value = BooleanValue(false);
 #endif
   if (!JS_SetProperty(cx, info, "arm-simulator", value)) {
     return false;
   }