Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index c0eca3c401b5af80dbfc4c8831e5bc5075b67953..fb698a344fa2626bd56c5c27bb0d8fdb5f423f1c 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -1181,7 +1181,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ LoadObject(x1, FeedbackVector()); |
__ Mov(x10, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
- __ Str(x10, FieldMemOperand(x1, FixedArray::OffsetOfElementAt(slot.ToInt()))); |
+ int vector_index = FeedbackVector()->GetIndex(slot); |
+ __ Str(x10, FieldMemOperand(x1, FixedArray::OffsetOfElementAt(vector_index))); |
__ Mov(x1, Smi::FromInt(1)); // Smi indicates slow check. |
__ Peek(x10, 0); // Get enumerated object. |