| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // Generates code to perform a lookup slot load via |function_id| that can | 140 // Generates code to perform a lookup slot load via |function_id| that can |
| 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 property. |
| 151 void BuildLoadGlobal(int slot_operand_index, int name_operand_index, | 151 void BuildLoadGlobalIC(int slot_operand_index, int name_operand_index, |
| 152 TypeofMode typeof_mode, InterpreterAssembler* assembler); | 152 TypeofMode typeof_mode, |
| 153 InterpreterAssembler* assembler); |
| 154 |
| 155 // Generates code to load a property. |
| 156 void BuildLoadIC(int recv_operand_index, int slot_operand_index, |
| 157 int name_operand_index, InterpreterAssembler* assembler); |
| 153 | 158 |
| 154 // Generates code to prepare the result for ForInPrepare. Cache data | 159 // Generates code to prepare the result for ForInPrepare. Cache data |
| 155 // are placed into the consecutive series of registers starting at | 160 // are placed into the consecutive series of registers starting at |
| 156 // |output_register|. | 161 // |output_register|. |
| 157 void BuildForInPrepareResult(compiler::Node* output_register, | 162 void BuildForInPrepareResult(compiler::Node* output_register, |
| 158 compiler::Node* cache_type, | 163 compiler::Node* cache_type, |
| 159 compiler::Node* cache_array, | 164 compiler::Node* cache_array, |
| 160 compiler::Node* cache_length, | 165 compiler::Node* cache_length, |
| 161 InterpreterAssembler* assembler); | 166 InterpreterAssembler* assembler); |
| 162 | 167 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 182 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 187 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
| 183 | 188 |
| 184 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 189 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 185 }; | 190 }; |
| 186 | 191 |
| 187 } // namespace interpreter | 192 } // namespace interpreter |
| 188 } // namespace internal | 193 } // namespace internal |
| 189 } // namespace v8 | 194 } // namespace v8 |
| 190 | 195 |
| 191 #endif // V8_INTERPRETER_INTERPRETER_H_ | 196 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |