Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index f7cb241211d32c3bc673ab54c3b7b1ed9133fbb7..dc7b545da97c0bc49301a58e22ab327edad304d5 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -4936,6 +4936,13 @@ void LCodeGen::DoDoubleToSmi(LDoubleToSmi* instr) { |
} |
+void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) { |
+ LOperand* input = instr->value(); |
+ __ And(at, ToRegister(input), Operand(kSmiTagMask)); |
+ DeoptimizeIf(ne, instr->environment(), at, Operand(zero_reg)); |
+} |
+ |
+ |
void LCodeGen::DoCheckSmi(LCheckSmi* instr) { |
LOperand* input = instr->value(); |
__ And(at, ToRegister(input), Operand(kSmiTagMask)); |