| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Generates code to perform a named property store via |ic|. | 118 // Generates code to perform a named property store via |ic|. |
| 119 void DoStoreIC(Callable ic, InterpreterAssembler* assembler); | 119 void DoStoreIC(Callable ic, InterpreterAssembler* assembler); |
| 120 | 120 |
| 121 // Generates code to perform a keyed property store via |ic|. | 121 // Generates code to perform a keyed property store via |ic|. |
| 122 void DoKeyedStoreIC(Callable ic, InterpreterAssembler* assembler); | 122 void DoKeyedStoreIC(Callable ic, InterpreterAssembler* assembler); |
| 123 | 123 |
| 124 // Generates code to perform a JS call that collects type feedback. | 124 // Generates code to perform a JS call that collects type feedback. |
| 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 a runtime call. | |
| 128 void DoCallRuntimeCommon(InterpreterAssembler* assembler); | |
| 129 | |
| 130 // Generates code to perform a runtime call returning a pair. | |
| 131 void DoCallRuntimeForPairCommon(InterpreterAssembler* assembler); | |
| 132 | |
| 133 // Generates code to perform a JS runtime call. | |
| 134 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); | |
| 135 | |
| 136 // Generates code to perform a constructor call. | |
| 137 void DoCallConstruct(InterpreterAssembler* assembler); | |
| 138 | |
| 139 // Generates code to perform delete via function_id. | 127 // Generates code to perform delete via function_id. |
| 140 void DoDelete(Runtime::FunctionId function_id, | 128 void DoDelete(Runtime::FunctionId function_id, |
| 141 InterpreterAssembler* assembler); | 129 InterpreterAssembler* assembler); |
| 142 | 130 |
| 143 // Generates code to perform a lookup slot load via |function_id|. | 131 // Generates code to perform a lookup slot load via |function_id|. |
| 144 void DoLdaLookupSlot(Runtime::FunctionId function_id, | 132 void DoLdaLookupSlot(Runtime::FunctionId function_id, |
| 145 InterpreterAssembler* assembler); | 133 InterpreterAssembler* assembler); |
| 146 | 134 |
| 147 // Generates code to perform a lookup slot store depending on |language_mode|. | 135 // Generates code to perform a lookup slot store depending on |language_mode|. |
| 148 void DoStaLookupSlot(LanguageMode language_mode, | 136 void DoStaLookupSlot(LanguageMode language_mode, |
| 149 InterpreterAssembler* assembler); | 137 InterpreterAssembler* assembler); |
| 150 | 138 |
| 151 // Generates a node with the undefined constant. | |
| 152 compiler::Node* BuildLoadUndefined(InterpreterAssembler* assembler); | |
| 153 | |
| 154 // Generates code to load a context slot. | 139 // Generates code to load a context slot. |
| 155 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); | 140 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); |
| 156 | 141 |
| 157 // Generates code to load a global. | 142 // Generates code to load a global. |
| 158 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); | 143 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); |
| 159 | 144 |
| 160 // Generates code to load a named property. | 145 // Generates code to load a named property. |
| 161 compiler::Node* BuildLoadNamedProperty(Callable ic, | 146 compiler::Node* BuildLoadNamedProperty(Callable ic, |
| 162 InterpreterAssembler* assembler); | 147 InterpreterAssembler* assembler); |
| 163 | 148 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 180 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
| 196 | 181 |
| 197 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 182 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 198 }; | 183 }; |
| 199 | 184 |
| 200 } // namespace interpreter | 185 } // namespace interpreter |
| 201 } // namespace internal | 186 } // namespace internal |
| 202 } // namespace v8 | 187 } // namespace v8 |
| 203 | 188 |
| 204 #endif // V8_INTERPRETER_INTERPRETER_H_ | 189 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |