Index: src/x64/lithium-x64.h |
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h |
index 77bebe64bd718c43d6c7f60f2a441e7f22b32b7c..b3cb682c342977a7c01477c1a92692c3af68782d 100644 |
--- a/src/x64/lithium-x64.h |
+++ b/src/x64/lithium-x64.h |
@@ -181,6 +181,7 @@ class LCodeGen; |
V(Typeof) \ |
V(TypeofIsAndBranch) \ |
V(Uint32ToDouble) \ |
+ V(Uint32ToSmi) \ |
V(UnknownOSRValue) \ |
V(ValueOf) \ |
V(WrapReceiver) |
@@ -1919,6 +1920,19 @@ class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> { |
}; |
+class LUint32ToSmi: public LTemplateInstruction<1, 1, 0> { |
+ public: |
+ explicit LUint32ToSmi(LOperand* value) { |
+ inputs_[0] = value; |
+ } |
+ |
+ LOperand* value() { return inputs_[0]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
+ DECLARE_HYDROGEN_ACCESSOR(Change) |
+}; |
+ |
+ |
class LNumberTagI: public LTemplateInstruction<1, 1, 0> { |
public: |
explicit LNumberTagI(LOperand* value) { |