| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index 736890e6cd58d5c542acc36c9a4e542bd4b0d8ba..0df0d13355b38f1a2a111bab472b7642842096b0 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1729,6 +1729,16 @@ LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoCheckSmiOrInt32(HCheckSmiOrInt32* instr) {
|
| + if (instr->representation().IsTagged() && !instr->type().IsSmi()) {
|
| + LOperand* value = UseRegisterAtStart(instr->value());
|
| + return AssignEnvironment(new(zone()) LCheckSmi(value));
|
| + } else {
|
| + return NULL;
|
| + }
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
|
| LOperand* value = UseRegisterAtStart(instr->value());
|
| return AssignEnvironment(new(zone()) LCheckFunction(value));
|
|
|