Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 36c67d00bb37b415eb37db958f5271631e999bff..fc5590bff39c48c7c0505e0c4259b62ea6913b0f 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -5357,7 +5357,8 @@ void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
Register map = ToRegister(instr->map()); |
Register result = ToRegister(instr->result()); |
- __ LoadInstanceDescriptors(map, result); |
+ Register scratch = ToRegister(instr->scratch()); |
+ __ LoadInstanceDescriptors(map, result, scratch); |
__ ldr(result, |
FieldMemOperand(result, DescriptorArray::kEnumerationIndexOffset)); |
__ ldr(result, |