| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of interpreter internals. | 10 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 InterpreterAssembler* assembler); | 135 InterpreterAssembler* assembler); |
| 136 | 136 |
| 137 // Generates code to perform a lookup slot store depending on | 137 // Generates code to perform a lookup slot store depending on |
| 138 // |language_mode|. | 138 // |language_mode|. |
| 139 void DoStaLookupSlot(LanguageMode language_mode, | 139 void DoStaLookupSlot(LanguageMode language_mode, |
| 140 InterpreterAssembler* assembler); | 140 InterpreterAssembler* assembler); |
| 141 | 141 |
| 142 // Generates code to load a context slot. | 142 // Generates code to load a context slot. |
| 143 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); | 143 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); |
| 144 | 144 |
| 145 // Generates code to load a slot in the current context. |
| 146 compiler::Node* BuildLoadCurrentContextSlot(InterpreterAssembler* assembler); |
| 147 |
| 145 // Generates code to load a global. | 148 // Generates code to load a global. |
| 146 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, | 149 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, |
| 147 compiler::Node* feedback_slot, | 150 compiler::Node* feedback_slot, |
| 148 InterpreterAssembler* assembler); | 151 InterpreterAssembler* assembler); |
| 149 | 152 |
| 150 // Generates code to load a named property. | 153 // Generates code to load a named property. |
| 151 compiler::Node* BuildLoadNamedProperty(Callable ic, | 154 compiler::Node* BuildLoadNamedProperty(Callable ic, |
| 152 InterpreterAssembler* assembler); | 155 InterpreterAssembler* assembler); |
| 153 | 156 |
| 154 // Generates code to load a keyed property. | 157 // Generates code to load a keyed property. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 189 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
| 187 | 190 |
| 188 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 191 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 189 }; | 192 }; |
| 190 | 193 |
| 191 } // namespace interpreter | 194 } // namespace interpreter |
| 192 } // namespace internal | 195 } // namespace internal |
| 193 } // namespace v8 | 196 } // namespace v8 |
| 194 | 197 |
| 195 #endif // V8_INTERPRETER_INTERPRETER_H_ | 198 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |