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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // fast path to a global load. | 141 // fast path to a global load. |
142 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id, | 142 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id, |
143 InterpreterAssembler* assembler); | 143 InterpreterAssembler* assembler); |
144 | 144 |
145 // Generates code to perform a lookup slot store depending on | 145 // Generates code to perform a lookup slot store depending on |
146 // |language_mode|. | 146 // |language_mode|. |
147 void DoStaLookupSlot(LanguageMode language_mode, | 147 void DoStaLookupSlot(LanguageMode language_mode, |
148 InterpreterAssembler* assembler); | 148 InterpreterAssembler* assembler); |
149 | 149 |
150 // Generates code to load a global. | 150 // Generates code to load a global. |
151 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, | 151 void BuildLoadGlobal(int slot_operand_index, int name_operand_index, |
152 compiler::Node* name_index, | 152 TypeofMode typeof_mode, InterpreterAssembler* assembler); |
153 compiler::Node* feedback_slot, | |
154 InterpreterAssembler* assembler); | |
155 | 153 |
156 // Generates code to prepare the result for ForInPrepare. Cache data | 154 // Generates code to prepare the result for ForInPrepare. Cache data |
157 // are placed into the consecutive series of registers starting at | 155 // are placed into the consecutive series of registers starting at |
158 // |output_register|. | 156 // |output_register|. |
159 void BuildForInPrepareResult(compiler::Node* output_register, | 157 void BuildForInPrepareResult(compiler::Node* output_register, |
160 compiler::Node* cache_type, | 158 compiler::Node* cache_type, |
161 compiler::Node* cache_array, | 159 compiler::Node* cache_array, |
162 compiler::Node* cache_length, | 160 compiler::Node* cache_length, |
163 InterpreterAssembler* assembler); | 161 InterpreterAssembler* assembler); |
164 | 162 |
(...skipping 19 matching lines...) Expand all Loading... |
184 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 182 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
185 | 183 |
186 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 184 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
187 }; | 185 }; |
188 | 186 |
189 } // namespace interpreter | 187 } // namespace interpreter |
190 } // namespace internal | 188 } // namespace internal |
191 } // namespace v8 | 189 } // namespace v8 |
192 | 190 |
193 #endif // V8_INTERPRETER_INTERPRETER_H_ | 191 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |