| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Generates code to perform a lookup slot load via |function_id|. | 131 // Generates code to perform a lookup slot load via |function_id|. |
| 132 void DoLdaLookupSlot(Runtime::FunctionId function_id, | 132 void DoLdaLookupSlot(Runtime::FunctionId function_id, |
| 133 InterpreterAssembler* assembler); | 133 InterpreterAssembler* assembler); |
| 134 | 134 |
| 135 // Generates code to perform a lookup slot load via |function_id| that can | 135 // Generates code to perform a lookup slot load via |function_id| that can |
| 136 // fast path to a context slot load. | 136 // fast path to a context slot load. |
| 137 void DoLdaLookupContextSlot(Runtime::FunctionId function_id, | 137 void DoLdaLookupContextSlot(Runtime::FunctionId function_id, |
| 138 InterpreterAssembler* assembler); | 138 InterpreterAssembler* assembler); |
| 139 | 139 |
| 140 // Generates code to perform a lookup slot store depending on |language_mode|. | 140 // Generates code to perform a lookup slot load via |function_id| that can |
| 141 // fast path to a global load. |
| 142 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id, |
| 143 InterpreterAssembler* assembler); |
| 144 |
| 145 // Generates code to perform a lookup slot store depending on |
| 146 // |language_mode|. |
| 141 void DoStaLookupSlot(LanguageMode language_mode, | 147 void DoStaLookupSlot(LanguageMode language_mode, |
| 142 InterpreterAssembler* assembler); | 148 InterpreterAssembler* assembler); |
| 143 | 149 |
| 144 // Generates code to load a context slot. | 150 // Generates code to load a context slot. |
| 145 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); | 151 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); |
| 146 | 152 |
| 147 // Generates code to load a global. | 153 // Generates code to load a global. |
| 148 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); | 154 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, |
| 155 compiler::Node* feedback_slot, |
| 156 InterpreterAssembler* assembler); |
| 149 | 157 |
| 150 // Generates code to load a named property. | 158 // Generates code to load a named property. |
| 151 compiler::Node* BuildLoadNamedProperty(Callable ic, | 159 compiler::Node* BuildLoadNamedProperty(Callable ic, |
| 152 InterpreterAssembler* assembler); | 160 InterpreterAssembler* assembler); |
| 153 | 161 |
| 154 // Generates code to load a keyed property. | 162 // Generates code to load a keyed property. |
| 155 compiler::Node* BuildLoadKeyedProperty(Callable ic, | 163 compiler::Node* BuildLoadKeyedProperty(Callable ic, |
| 156 InterpreterAssembler* assembler); | 164 InterpreterAssembler* assembler); |
| 157 | 165 |
| 158 // Generates code to prepare the result for ForInPrepare. Cache data | 166 // Generates code to prepare the result for ForInPrepare. Cache data |
| (...skipping 26 matching lines...) Expand all Loading... |
| 185 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 193 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
| 186 | 194 |
| 187 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 195 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 188 }; | 196 }; |
| 189 | 197 |
| 190 } // namespace interpreter | 198 } // namespace interpreter |
| 191 } // namespace internal | 199 } // namespace internal |
| 192 } // namespace v8 | 200 } // namespace v8 |
| 193 | 201 |
| 194 #endif // V8_INTERPRETER_INTERPRETER_H_ | 202 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |