Index: src/ia32/lithium-ia32.h |
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h |
index e10bee5eea340c700ce93749485fc62d159aed04..47d8601cdb0139ddc5d02fadd67ddc382f35c2ae 100644 |
--- a/src/ia32/lithium-ia32.h |
+++ b/src/ia32/lithium-ia32.h |
@@ -70,6 +70,7 @@ class LCodeGen; |
V(CheckNonSmi) \ |
V(CheckPrototypeMaps) \ |
V(CheckSmi) \ |
+ V(CheckSmiAndReturn) \ |
V(ClampDToUint8) \ |
V(ClampIToUint8) \ |
V(ClampTToUint8) \ |
@@ -2461,7 +2462,7 @@ class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> { |
}; |
-class LCheckSmi: public LTemplateInstruction<1, 1, 0> { |
+class LCheckSmi: public LTemplateInstruction<0, 1, 0> { |
public: |
explicit LCheckSmi(LOperand* value) { |
inputs_[0] = value; |
@@ -2473,6 +2474,18 @@ class LCheckSmi: public LTemplateInstruction<1, 1, 0> { |
}; |
+class LCheckSmiAndReturn: public LTemplateInstruction<1, 1, 0> { |
+ public: |
+ explicit LCheckSmiAndReturn(LOperand* value) { |
+ inputs_[0] = value; |
+ } |
+ |
+ LOperand* value() { return inputs_[0]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(CheckSmiAndReturn, "check-smi-and-return") |
+}; |
+ |
+ |
class LClampDToUint8: public LTemplateInstruction<1, 1, 0> { |
public: |
explicit LClampDToUint8(LOperand* value) { |