| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Generates code to perform a lookup slot load via |function_id| that can | 132 // Generates code to perform a lookup slot load via |function_id| that can |
| 133 // fast path to a global load. | 133 // fast path to a global load. |
| 134 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id, | 134 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id, |
| 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. | |
| 143 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); | |
| 144 | |
| 145 // Generates code to load a slot in the current context. | |
| 146 compiler::Node* BuildLoadCurrentContextSlot(InterpreterAssembler* assembler); | |
| 147 | |
| 148 // Generates code to load a global. | 142 // Generates code to load a global. |
| 149 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, | 143 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, |
| 150 compiler::Node* feedback_slot, | 144 compiler::Node* feedback_slot, |
| 151 InterpreterAssembler* assembler); | 145 InterpreterAssembler* assembler); |
| 152 | 146 |
| 153 // Generates code to prepare the result for ForInPrepare. Cache data | 147 // Generates code to prepare the result for ForInPrepare. Cache data |
| 154 // are placed into the consecutive series of registers starting at | 148 // are placed into the consecutive series of registers starting at |
| 155 // |output_register|. | 149 // |output_register|. |
| 156 void BuildForInPrepareResult(compiler::Node* output_register, | 150 void BuildForInPrepareResult(compiler::Node* output_register, |
| 157 compiler::Node* cache_type, | 151 compiler::Node* cache_type, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 181 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 175 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
| 182 | 176 |
| 183 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 177 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 184 }; | 178 }; |
| 185 | 179 |
| 186 } // namespace interpreter | 180 } // namespace interpreter |
| 187 } // namespace internal | 181 } // namespace internal |
| 188 } // namespace v8 | 182 } // namespace v8 |
| 189 | 183 |
| 190 #endif // V8_INTERPRETER_INTERPRETER_H_ | 184 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |