Index: src/arm/lithium-arm.h |
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
index 68e8748163ec40d981d1da9f683d115e61eb9397..0d01bfd5b108128ef7797a7f47c23067d9f12cc4 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/arm/lithium-arm.h |
@@ -76,6 +76,7 @@ class LCodeGen; |
V(CheckMaps) \ |
V(CheckPrototypeMaps) \ |
V(CheckSmi) \ |
+ V(CheckSmiAndReturn) \ |
V(ClampDToUint8) \ |
V(ClampIToUint8) \ |
V(ClampTToUint8) \ |
@@ -2387,7 +2388,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; |
@@ -2399,6 +2400,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) { |