Bug 1249896 - Part 3: Add JS namespace for GenericNaN. r=luke
authorTooru Fujisawa <arai_a@mac.com>
Tue, 23 Feb 2016 23:45:48 +0900
changeset 321491 e286e902c15ef24d3a28cfb4dd56f22a182cedb4
parent 321490 914adf5734666066a75c751a462f06f19ecc4fb7
child 321492 0a46418cbe6d9d5c173eefe11baaedb837bd0538
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs1249896
milestone47.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 1249896 - Part 3: Add JS namespace for GenericNaN. r=luke
js/src/jit/MCallOptimize.cpp
--- a/js/src/jit/MCallOptimize.cpp
+++ b/js/src/jit/MCallOptimize.cpp
@@ -3301,17 +3301,17 @@ IonBuilder::inlineConstructSimdObject(Ca
         if (laneType == MIRType_Int32) {
             defVal = constant(Int32Value(0));
         } else if (laneType == MIRType_Boolean) {
             defVal = constant(BooleanValue(false));
         } else if (laneType == MIRType_Double) {
             defVal = constant(DoubleNaNValue());
         } else {
             MOZ_ASSERT(laneType == MIRType_Float32);
-            defVal = MConstant::NewFloat32(alloc(), GenericNaN());
+            defVal = MConstant::NewFloat32(alloc(), JS::GenericNaN());
             current->add(defVal);
         }
     }
 
     MDefinition* lane[4];
     for (unsigned i = 0; i < 4; i++)
         lane[i] = callInfo.getArgWithDefault(i, defVal);