Index: src/compiler/interpreter-assembler.cc |
diff --git a/src/compiler/interpreter-assembler.cc b/src/compiler/interpreter-assembler.cc |
index 0ba6176f6b8d4be91dc110e193e56e9ad46160c7..6103583931303098f41d67624bc8d09a53d5e689 100644 |
--- a/src/compiler/interpreter-assembler.cc |
+++ b/src/compiler/interpreter-assembler.cc |
@@ -305,6 +305,15 @@ Node* InterpreterAssembler::LoadContextSlot(Node* context, Node* slot_index) { |
} |
+Node* InterpreterAssembler::StoreContextSlot(Node* context, Node* slot_index, |
+ Node* value) { |
+ Node* offset = |
+ IntPtrAdd(WordShl(slot_index, kPointerSizeLog2), |
+ Int32Constant(Context::kHeaderSize - kHeapObjectTag)); |
+ return raw_assembler_->Store(kMachAnyTagged, context, offset, value); |
+} |
+ |
+ |
Node* InterpreterAssembler::LoadTypeFeedbackVector() { |
Node* function = raw_assembler_->Load( |
kMachAnyTagged, RegisterFileRawPointer(), |