Index: src/compiler/interpreter-assembler.cc |
diff --git a/src/compiler/interpreter-assembler.cc b/src/compiler/interpreter-assembler.cc |
index 8d470818f220c4b729e585f0299c8f5a7f935531..3b76dfb0718b9a57c0db69a83755de6b326bb65c 100644 |
--- a/src/compiler/interpreter-assembler.cc |
+++ b/src/compiler/interpreter-assembler.cc |
@@ -292,6 +292,15 @@ Node* InterpreterAssembler::LoadConstantPoolEntry(Node* index) { |
} |
+Node* InterpreterAssembler::LoadFixedArrayElement(Node* fixed_array, |
+ int index) { |
+ Node* entry_offset = |
+ IntPtrAdd(IntPtrConstant(FixedArray::kHeaderSize - kHeapObjectTag), |
+ WordShl(Int32Constant(index), kPointerSizeLog2)); |
+ return raw_assembler_->Load(kMachAnyTagged, fixed_array, entry_offset); |
+} |
+ |
+ |
Node* InterpreterAssembler::LoadObjectField(Node* object, int offset) { |
return raw_assembler_->Load(kMachAnyTagged, object, |
IntPtrConstant(offset - kHeapObjectTag)); |