Chromium Code Reviews| Index: src/interpreter/interpreter.cc |
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
| index decc0724300cbaf3ae8a54c4aad3df34c27b51c5..2a2d286cb193abcbd3472a3fca59d82e6eacdeb4 100644 |
| --- a/src/interpreter/interpreter.cc |
| +++ b/src/interpreter/interpreter.cc |
| @@ -556,6 +556,14 @@ 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) { |
| + DoLdaContextSlot(assembler); |
|
rmcilroy
2017/02/07 14:02:14
Could you add a TODO for Danno to share the machin
Jarin
2017/02/07 14:31:05
Done.
|
| +} |
| + |
| // LdaCurrentContextSlot <slot_index> |
| // |
| // Load the object in |slot_index| of the current context into the accumulator. |
| @@ -567,6 +575,14 @@ 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) { |
| + DoLdaCurrentContextSlot(assembler); |
| +} |
| + |
| // StaContextSlot <context> <slot_index> <depth> |
| // |
| // Stores the object in the accumulator into |slot_index| of the context at |