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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 compiler::Node* type_feedback_vector, | 122 compiler::Node* type_feedback_vector, |
123 TailCallMode tail_call_mode); | 123 TailCallMode tail_call_mode); |
124 | 124 |
125 // Call JSFunction or Callable |function| with |arg_count| | 125 // Call JSFunction or Callable |function| with |arg_count| |
126 // arguments (not including receiver) and the first argument | 126 // arguments (not including receiver) and the first argument |
127 // located at |first_arg|. | 127 // located at |first_arg|. |
128 compiler::Node* CallJS(compiler::Node* function, compiler::Node* context, | 128 compiler::Node* CallJS(compiler::Node* function, compiler::Node* context, |
129 compiler::Node* first_arg, compiler::Node* arg_count, | 129 compiler::Node* first_arg, compiler::Node* arg_count, |
130 TailCallMode tail_call_mode); | 130 TailCallMode tail_call_mode); |
131 | 131 |
| 132 // Call JSFunction or Callable |function| with |arg_count| |
| 133 // arguments (not including receiver) and the first argument |
| 134 // located at |first_arg|. |
| 135 compiler::Node* CallJSWithSpread(compiler::Node* function, |
| 136 compiler::Node* context, |
| 137 compiler::Node* first_arg, |
| 138 compiler::Node* arg_count); |
| 139 |
132 // Call constructor |constructor| with |arg_count| arguments (not | 140 // Call constructor |constructor| with |arg_count| arguments (not |
133 // including receiver) and the first argument located at | 141 // including receiver) and the first argument located at |
134 // |first_arg|. The |new_target| is the same as the | 142 // |first_arg|. The |new_target| is the same as the |
135 // |constructor| for the new keyword, but differs for the super | 143 // |constructor| for the new keyword, but differs for the super |
136 // keyword. | 144 // keyword. |
137 compiler::Node* CallConstruct(compiler::Node* constructor, | 145 compiler::Node* CallConstruct(compiler::Node* constructor, |
138 compiler::Node* context, | 146 compiler::Node* context, |
139 compiler::Node* new_target, | 147 compiler::Node* new_target, |
140 compiler::Node* first_arg, | 148 compiler::Node* first_arg, |
141 compiler::Node* arg_count, | 149 compiler::Node* arg_count, |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 compiler::Node* stack_pointer_before_call_; | 330 compiler::Node* stack_pointer_before_call_; |
323 | 331 |
324 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 332 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
325 }; | 333 }; |
326 | 334 |
327 } // namespace interpreter | 335 } // namespace interpreter |
328 } // namespace internal | 336 } // namespace internal |
329 } // namespace v8 | 337 } // namespace v8 |
330 | 338 |
331 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 339 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |