| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 compiler::Node* CallJSWithSpread(compiler::Node* function, | 138 compiler::Node* CallJSWithSpread(compiler::Node* function, |
| 139 compiler::Node* context, | 139 compiler::Node* context, |
| 140 compiler::Node* first_arg, | 140 compiler::Node* first_arg, |
| 141 compiler::Node* arg_count); | 141 compiler::Node* arg_count); |
| 142 | 142 |
| 143 // Call constructor |constructor| with |arg_count| arguments (not | 143 // Call constructor |constructor| with |arg_count| arguments (not |
| 144 // including receiver) and the first argument located at | 144 // including receiver) and the first argument located at |
| 145 // |first_arg|. The |new_target| is the same as the | 145 // |first_arg|. The |new_target| is the same as the |
| 146 // |constructor| for the new keyword, but differs for the super | 146 // |constructor| for the new keyword, but differs for the super |
| 147 // keyword. | 147 // keyword. |
| 148 compiler::Node* CallConstruct(compiler::Node* constructor, | 148 compiler::Node* Construct(compiler::Node* constructor, |
| 149 compiler::Node* context, | 149 compiler::Node* context, compiler::Node* new_target, |
| 150 compiler::Node* new_target, | 150 compiler::Node* first_arg, |
| 151 compiler::Node* first_arg, | 151 compiler::Node* arg_count, compiler::Node* slot_id, |
| 152 compiler::Node* arg_count, | 152 compiler::Node* type_feedback_vector); |
| 153 compiler::Node* slot_id, | |
| 154 compiler::Node* type_feedback_vector); | |
| 155 | 153 |
| 156 // Call constructor |constructor| with |arg_count| arguments (not including | 154 // Call constructor |constructor| with |arg_count| arguments (not including |
| 157 // receiver) and the first argument located at |first_arg|. The last argument | 155 // receiver) and the first argument located at |first_arg|. The last argument |
| 158 // is always a spread. The |new_target| is the same as the |constructor| for | 156 // is always a spread. The |new_target| is the same as the |constructor| for |
| 159 // the new keyword, but differs for the super keyword. | 157 // the new keyword, but differs for the super keyword. |
| 160 compiler::Node* CallConstructWithSpread(compiler::Node* constructor, | 158 compiler::Node* ConstructWithSpread(compiler::Node* constructor, |
| 161 compiler::Node* context, | 159 compiler::Node* context, |
| 162 compiler::Node* new_target, | 160 compiler::Node* new_target, |
| 163 compiler::Node* first_arg, | 161 compiler::Node* first_arg, |
| 164 compiler::Node* arg_count); | 162 compiler::Node* arg_count); |
| 165 | 163 |
| 166 // Call runtime function with |arg_count| arguments and the first argument | 164 // Call runtime function with |arg_count| arguments and the first argument |
| 167 // located at |first_arg|. | 165 // located at |first_arg|. |
| 168 compiler::Node* CallRuntimeN(compiler::Node* function_id, | 166 compiler::Node* CallRuntimeN(compiler::Node* function_id, |
| 169 compiler::Node* context, | 167 compiler::Node* context, |
| 170 compiler::Node* first_arg, | 168 compiler::Node* first_arg, |
| 171 compiler::Node* arg_count, int return_size = 1); | 169 compiler::Node* arg_count, int return_size = 1); |
| 172 | 170 |
| 173 // Jump forward relative to the current bytecode by the |jump_offset|. | 171 // Jump forward relative to the current bytecode by the |jump_offset|. |
| 174 compiler::Node* Jump(compiler::Node* jump_offset); | 172 compiler::Node* Jump(compiler::Node* jump_offset); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 compiler::Node* stack_pointer_before_call_; | 343 compiler::Node* stack_pointer_before_call_; |
| 346 | 344 |
| 347 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 345 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 348 }; | 346 }; |
| 349 | 347 |
| 350 } // namespace interpreter | 348 } // namespace interpreter |
| 351 } // namespace internal | 349 } // namespace internal |
| 352 } // namespace v8 | 350 } // namespace v8 |
| 353 | 351 |
| 354 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 352 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |