Bug 898021 followup: compare viewType() result to the correct enum type. r=bhackett
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 26 Jul 2013 18:24:07 -0700
changeset 140252 7a41bb1a3c9d1c17fd68bb01ed3bad0dc09319fc
parent 140251 c456780d7d1f7c4f6e4cf927b44a98305d8006b5
child 140253 de06fec529a5b11ed947a9c5fa2d535ce166c5cc
push id1951
push userryanvm@gmail.com
push dateSun, 28 Jul 2013 01:55:51 +0000
treeherderfx-team@73b69c146ca6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs898021
milestone25.0a1
Bug 898021 followup: compare viewType() result to the correct enum type. r=bhackett
js/src/ion/MIR.h
--- a/js/src/ion/MIR.h
+++ b/js/src/ion/MIR.h
@@ -5320,18 +5320,18 @@ class MStoreTypedArrayElementStatic :
     }
 
     TypePolicy *typePolicy() {
         return this;
     }
 
     ArrayBufferView::ViewType viewType() const { return JS_GetArrayBufferViewType(typedArray_); }
     bool isFloatArray() const {
-        return (viewType() == TypedArrayObject::TYPE_FLOAT32 ||
-                viewType() == TypedArrayObject::TYPE_FLOAT64);
+        return (viewType() == ArrayBufferView::TYPE_FLOAT32 ||
+                viewType() == ArrayBufferView::TYPE_FLOAT64);
     }
 
     void *base() const;
     size_t length() const;
 
     MDefinition *ptr() const { return getOperand(0); }
     MDefinition *value() const { return getOperand(1); }
     AliasSet getAliasSet() const {