Index: src/crankshaft/arm64/lithium-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-arm64.cc b/src/crankshaft/arm64/lithium-arm64.cc |
index 9c48b28f9464eb0962a8c530615caa76a16feeb8..0b929806b6660b0f4791c1e534af5fd838d5700e 100644 |
--- a/src/crankshaft/arm64/lithium-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-arm64.cc |
@@ -1557,8 +1557,11 @@ LInstruction* LChunkBuilder::DoHasInPrototypeChainAndBranch( |
HHasInPrototypeChainAndBranch* instr) { |
LOperand* object = UseRegister(instr->object()); |
LOperand* prototype = UseRegister(instr->prototype()); |
- LOperand* scratch = TempRegister(); |
- return new (zone()) LHasInPrototypeChainAndBranch(object, prototype, scratch); |
+ LOperand* scratch1 = TempRegister(); |
+ LOperand* scratch2 = TempRegister(); |
+ LHasInPrototypeChainAndBranch* result = new (zone()) |
+ LHasInPrototypeChainAndBranch(object, prototype, scratch1, scratch2); |
+ return AssignEnvironment(result); |
} |