Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index decc0724300cbaf3ae8a54c4aad3df34c27b51c5..cd18d099ee596f087a09ec590384e1e19476ab8b 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -556,6 +556,15 @@ void Interpreter::DoLdaContextSlot(InterpreterAssembler* assembler) { |
__ Dispatch(); |
} |
+// LdaImmutableContextSlot <context> <slot_index> <depth> |
+// |
+// Load the object in |slot_index| of the context at |depth| in the context |
+// chain starting at |context| into the accumulator. |
+void Interpreter::DoLdaImmutableContextSlot(InterpreterAssembler* assembler) { |
+ // TODO(danno) Share the actual code object rather creating a duplicate one. |
+ DoLdaContextSlot(assembler); |
+} |
+ |
// LdaCurrentContextSlot <slot_index> |
// |
// Load the object in |slot_index| of the current context into the accumulator. |
@@ -567,6 +576,15 @@ void Interpreter::DoLdaCurrentContextSlot(InterpreterAssembler* assembler) { |
__ Dispatch(); |
} |
+// LdaImmutableCurrentContextSlot <slot_index> |
+// |
+// Load the object in |slot_index| of the current context into the accumulator. |
+void Interpreter::DoLdaImmutableCurrentContextSlot( |
+ InterpreterAssembler* assembler) { |
+ // TODO(danno) Share the actual code object rather creating a duplicate one. |
+ DoLdaCurrentContextSlot(assembler); |
+} |
+ |
// StaContextSlot <context> <slot_index> <depth> |
// |
// Stores the object in the accumulator into |slot_index| of the context at |