Index: src/compiler/interpreter-assembler.cc |
diff --git a/src/compiler/interpreter-assembler.cc b/src/compiler/interpreter-assembler.cc |
index 51ce47fc104920594bf46f802fb04732ebb25cfe..512bfb69e1fb5793646d83fc7587b0d80fe05cbe 100644 |
--- a/src/compiler/interpreter-assembler.cc |
+++ b/src/compiler/interpreter-assembler.cc |
@@ -297,6 +297,12 @@ Node* InterpreterAssembler::LoadObjectField(Node* object, int offset) { |
} |
+Node* InterpreterAssembler::LoadContextSlot(Node* context, int slot_index) { |
+ return raw_assembler_->Load(kMachAnyTagged, context, |
+ IntPtrConstant(Context::SlotOffset(slot_index))); |
+} |
+ |
+ |
Node* InterpreterAssembler::LoadContextSlot(Node* context, Node* slot_index) { |
Node* offset = |
IntPtrAdd(WordShl(slot_index, kPointerSizeLog2), |