| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index c64533cdfcbd10201c743179160bbb1efc888667..c58bb81af040b21a9d98fcd38057808f5151710c 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1956,9 +1956,14 @@ LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
|
| - LUnallocated* temp1 = TempRegister();
|
| - LOperand* temp2 = TempRegister();
|
| + LUnallocated* temp1 = NULL;
|
| + LOperand* temp2 = NULL;
|
| + if (!instr->CanOmitPrototypeChecks()) {
|
| + temp1 = TempRegister();
|
| + temp2 = TempRegister();
|
| + }
|
| LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2);
|
| + if (instr->CanOmitPrototypeChecks()) return result;
|
| return AssignEnvironment(result);
|
| }
|
|
|
| @@ -1970,8 +1975,10 @@ LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
|
| - LOperand* value = UseRegisterAtStart(instr->value());
|
| + LOperand* value = NULL;
|
| + if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value());
|
| LInstruction* result = new(zone()) LCheckMaps(value);
|
| + if (instr->CanOmitMapChecks()) return result;
|
| return AssignEnvironment(result);
|
| }
|
|
|
|
|