Bug 1045948 - IonMonkey: Make LAllocation's data unsigned r=bhackett
authorDan Gohman <sunfish@mozilla.com>
Sat, 16 Aug 2014 13:13:14 -0700
changeset 200006 cafba2a1b359a8205906cad600b363be4d7e4f6d
parent 200005 8e45a9d7abfb29a06de7c09fbc24c9438c1a192b
child 200007 94ba78a423050deda23c6382fc3aa004d5e89913
push id9784
push userryanvm@gmail.com
push dateSat, 16 Aug 2014 21:45:40 +0000
treeherderb2g-inbound@94ba78a42305 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs1045948
milestone34.0a1
Bug 1045948 - IonMonkey: Make LAllocation's data unsigned r=bhackett
js/src/jit/LIR.h
--- a/js/src/jit/LIR.h
+++ b/js/src/jit/LIR.h
@@ -76,26 +76,26 @@ class LAllocation : public TempObject
         USE,            // Use of a virtual register, with physical allocation policy.
         GPR,            // General purpose register.
         FPU,            // Floating-point register.
         STACK_SLOT,     // Stack slot.
         ARGUMENT_SLOT   // Argument slot.
     };
 
   protected:
-    int32_t data() const {
-        return int32_t(bits_) >> DATA_SHIFT;
+    uint32_t data() const {
+        return uint32_t(bits_) >> DATA_SHIFT;
     }
-    void setData(int32_t data) {
-        JS_ASSERT(int32_t(data) <= int32_t(DATA_MASK));
+    void setData(uint32_t data) {
+        JS_ASSERT(data <= DATA_MASK);
         bits_ &= ~(DATA_MASK << DATA_SHIFT);
         bits_ |= (data << DATA_SHIFT);
     }
     void setKindAndData(Kind kind, uint32_t data) {
-        JS_ASSERT(int32_t(data) <= int32_t(DATA_MASK));
+        JS_ASSERT(data <= DATA_MASK);
         bits_ = (uint32_t(kind) << KIND_SHIFT) | data << DATA_SHIFT;
     }
 
     LAllocation(Kind kind, uint32_t data) {
         setKindAndData(kind, data);
     }
     explicit LAllocation(Kind kind) {
         setKindAndData(kind, 0);