Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index ec24cf92256622dd50b9e582c7098bd7a442059b..6d2e0602209481dbe2d195406f9baba1097ded22 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -5697,6 +5697,13 @@ void LCodeGen::DoDoubleToSmi(LDoubleToSmi* instr) { |
} |
+void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) { |
+ LOperand* input = instr->value(); |
+ __ test(ToOperand(input), Immediate(kSmiTagMask)); |
+ DeoptimizeIf(not_zero, instr->environment()); |
+} |
+ |
+ |
void LCodeGen::DoCheckSmi(LCheckSmi* instr) { |
LOperand* input = instr->value(); |
__ test(ToOperand(input), Immediate(kSmiTagMask)); |