| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index b68d22f33607aaf1e75d97b9278823d6b795e91d..b98b462386750a60a2c85660e5b9de94e1738831 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -2035,9 +2035,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);
|
| }
|
|
|
| @@ -2049,8 +2054,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);
|
| }
|
|
|
|
|