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_ASSEMBLER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/builtins/builtins.h" | 9 #include "src/builtins/builtins.h" |
10 #include "src/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // |constructor| for the new keyword, but differs for the super | 135 // |constructor| for the new keyword, but differs for the super |
136 // keyword. | 136 // keyword. |
137 compiler::Node* CallConstruct(compiler::Node* constructor, | 137 compiler::Node* CallConstruct(compiler::Node* constructor, |
138 compiler::Node* context, | 138 compiler::Node* context, |
139 compiler::Node* new_target, | 139 compiler::Node* new_target, |
140 compiler::Node* first_arg, | 140 compiler::Node* first_arg, |
141 compiler::Node* arg_count, | 141 compiler::Node* arg_count, |
142 compiler::Node* slot_id, | 142 compiler::Node* slot_id, |
143 compiler::Node* type_feedback_vector); | 143 compiler::Node* type_feedback_vector); |
144 | 144 |
| 145 // Call constructor |constructor| with |arg_count| arguments (not including |
| 146 // receiver) and the first argument located at |first_arg|. The last argument |
| 147 // is always a spread. The |new_target| is the same as the |constructor| for |
| 148 // the new keyword, but differs for the super keyword. |
| 149 compiler::Node* CallConstructWithSpread(compiler::Node* constructor, |
| 150 compiler::Node* context, |
| 151 compiler::Node* new_target, |
| 152 compiler::Node* first_arg, |
| 153 compiler::Node* arg_count); |
| 154 |
145 // Call runtime function with |arg_count| arguments and the first argument | 155 // Call runtime function with |arg_count| arguments and the first argument |
146 // located at |first_arg|. | 156 // located at |first_arg|. |
147 compiler::Node* CallRuntimeN(compiler::Node* function_id, | 157 compiler::Node* CallRuntimeN(compiler::Node* function_id, |
148 compiler::Node* context, | 158 compiler::Node* context, |
149 compiler::Node* first_arg, | 159 compiler::Node* first_arg, |
150 compiler::Node* arg_count, int return_size = 1); | 160 compiler::Node* arg_count, int return_size = 1); |
151 | 161 |
152 // Jump relative to the current bytecode by |jump_offset|. | 162 // Jump relative to the current bytecode by |jump_offset|. |
153 compiler::Node* Jump(compiler::Node* jump_offset); | 163 compiler::Node* Jump(compiler::Node* jump_offset); |
154 | 164 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 compiler::Node* stack_pointer_before_call_; | 322 compiler::Node* stack_pointer_before_call_; |
313 | 323 |
314 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 324 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
315 }; | 325 }; |
316 | 326 |
317 } // namespace interpreter | 327 } // namespace interpreter |
318 } // namespace internal | 328 } // namespace internal |
319 } // namespace v8 | 329 } // namespace v8 |
320 | 330 |
321 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 331 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |