Index: src/mips/lithium-mips.h |
diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h |
index 96065512b204037e77d1b49691106c7d264abdd1..3156722d869200baefb68cfe75dce9a6dfc672ff 100644 |
--- a/src/mips/lithium-mips.h |
+++ b/src/mips/lithium-mips.h |
@@ -76,6 +76,7 @@ class LCodeGen; |
V(CheckNonSmi) \ |
V(CheckPrototypeMaps) \ |
V(CheckSmi) \ |
+ V(CheckSmiAndReturn) \ |
V(ClampDToUint8) \ |
V(ClampIToUint8) \ |
V(ClampTToUint8) \ |
@@ -2328,7 +2329,7 @@ class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 2> { |
}; |
-class LCheckSmi: public LTemplateInstruction<1, 1, 0> { |
+class LCheckSmi: public LTemplateInstruction<0, 1, 0> { |
public: |
explicit LCheckSmi(LOperand* value) { |
inputs_[0] = value; |
@@ -2340,6 +2341,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 LCheckNonSmi: public LTemplateInstruction<0, 1, 0> { |
public: |
explicit LCheckNonSmi(LOperand* value) { |