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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void DoJSCall(InterpreterAssembler* assembler, TailCallMode tail_call_mode); | 125 void DoJSCall(InterpreterAssembler* assembler, TailCallMode tail_call_mode); |
126 | 126 |
127 // Generates code to perform delete via function_id. | 127 // Generates code to perform delete via function_id. |
128 void DoDelete(Runtime::FunctionId function_id, | 128 void DoDelete(Runtime::FunctionId function_id, |
129 InterpreterAssembler* assembler); | 129 InterpreterAssembler* assembler); |
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 |
| 136 // fast path to a context slot load |
| 137 void DoLdaLookupContextSlot(Runtime::FunctionId function_id, |
| 138 InterpreterAssembler* assembler); |
| 139 |
135 // Generates code to perform a lookup slot store depending on |language_mode|. | 140 // Generates code to perform a lookup slot store depending on |language_mode|. |
136 void DoStaLookupSlot(LanguageMode language_mode, | 141 void DoStaLookupSlot(LanguageMode language_mode, |
137 InterpreterAssembler* assembler); | 142 InterpreterAssembler* assembler); |
138 | 143 |
139 // Generates code to load a context slot. | 144 // Generates code to load a context slot. |
140 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); | 145 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); |
141 | 146 |
142 // Generates code to load a global. | 147 // Generates code to load a global. |
143 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); | 148 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); |
144 | 149 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 185 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
181 | 186 |
182 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 187 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
183 }; | 188 }; |
184 | 189 |
185 } // namespace interpreter | 190 } // namespace interpreter |
186 } // namespace internal | 191 } // namespace internal |
187 } // namespace v8 | 192 } // namespace v8 |
188 | 193 |
189 #endif // V8_INTERPRETER_INTERPRETER_H_ | 194 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |