Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 72a8a7ee8b598e859229fe4da1a9fd4b05e8b169..a42da50f8312ddcf9a226ffc006f32be8a345171 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -1720,7 +1720,8 @@ void Interpreter::DoForInNext(InterpreterAssembler* assembler) { |
Node* cache_array = __ LoadRegister(cache_array_reg); |
// Load the next key from the enumeration array. |
- Node* key = __ LoadFixedArrayElementSmiIndex(cache_array, index); |
+ Node* key = __ LoadFixedArrayElement(cache_array, index, 0, |
+ CodeStubAssembler::SMI_PARAMETERS); |
// Check if we can use the for-in fast path potentially using the enum cache. |
Label if_fast(assembler), if_slow(assembler, Label::kDeferred); |
@@ -1740,8 +1741,8 @@ void Interpreter::DoForInNext(InterpreterAssembler* assembler) { |
Node* type_feedback_vector = __ LoadTypeFeedbackVector(); |
Node* megamorphic_sentinel = |
__ HeapConstant(TypeFeedbackVector::MegamorphicSentinel(isolate_)); |
- __ StoreFixedArrayElementNoWriteBarrier(type_feedback_vector, vector_index, |
- megamorphic_sentinel); |
+ __ StoreFixedArrayElement(type_feedback_vector, vector_index, |
+ megamorphic_sentinel, SKIP_WRITE_BARRIER); |
// Need to filter the {key} for the {receiver}. |
Node* context = __ GetContext(); |