| 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 @@
|
| __ 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.
|
| @@ -565,6 +574,15 @@
|
| Node* result = __ LoadContextElement(slot_context, slot_index);
|
| __ SetAccumulator(result);
|
| __ 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>
|
|
|