| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index bc75f4767fdb4d431a01e4f89117e947fc758618..de16f16a54821df31770ed30503b4f8751902f3f 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -1072,10 +1072,6 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| // We got a fixed array in register x0. Iterate through that.
|
| __ Bind(&fixed_array);
|
|
|
| - int const vector_index = SmiFromSlot(slot)->value();
|
| - __ EmitLoadTypeFeedbackVector(x1);
|
| - __ Mov(x10, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate())));
|
| - __ Str(x10, FieldMemOperand(x1, FixedArray::OffsetOfElementAt(vector_index)));
|
| __ Mov(x1, Smi::FromInt(1)); // Smi(1) indicates slow check.
|
| __ Ldr(x2, FieldMemOperand(x0, FixedArray::kLengthOffset));
|
| __ Push(x1, x0, x2); // Smi and array, fixed array length (as smi).
|
| @@ -1108,12 +1104,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| __ Cmp(x11, x2);
|
| __ B(eq, &update_each);
|
|
|
| - // We might get here from TurboFan or Crankshaft when something in the
|
| - // for-in loop body deopts and only now notice in fullcodegen, that we
|
| - // can now longer use the enum cache, i.e. left fast mode. So better record
|
| - // this information here, in case we later OSR back into this loop or
|
| - // reoptimize the whole function w/o rerunning the loop with the slow
|
| - // mode object in fullcodegen (which would result in a deopt loop).
|
| + // We need to filter the key, record slow-path here.
|
| + int const vector_index = SmiFromSlot(slot)->value();
|
| __ EmitLoadTypeFeedbackVector(x0);
|
| __ Mov(x10, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate())));
|
| __ Str(x10, FieldMemOperand(x0, FixedArray::OffsetOfElementAt(vector_index)));
|
|
|