| 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 #include "src/interpreter/interpreter-assembler.h" | 5 #include "src/interpreter/interpreter-assembler.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 Node* InterpreterAssembler::CallJS(Node* function, Node* context, | 338 Node* InterpreterAssembler::CallJS(Node* function, Node* context, |
| 339 Node* first_arg, Node* arg_count, | 339 Node* first_arg, Node* arg_count, |
| 340 TailCallMode tail_call_mode) { | 340 TailCallMode tail_call_mode) { |
| 341 Callable callable = | 341 Callable callable = |
| 342 CodeFactory::InterpreterPushArgsAndCall(isolate(), tail_call_mode); | 342 CodeFactory::InterpreterPushArgsAndCall(isolate(), tail_call_mode); |
| 343 Node* code_target = HeapConstant(callable.code()); | 343 Node* code_target = HeapConstant(callable.code()); |
| 344 return CallStub(callable.descriptor(), code_target, context, arg_count, | 344 return CallStub(callable.descriptor(), code_target, context, arg_count, |
| 345 first_arg, function); | 345 first_arg, function); |
| 346 } | 346 } |
| 347 | 347 |
| 348 Node* InterpreterAssembler::CallJSWithFeedback(Node* function, Node* context, |
| 349 Node* first_arg, Node* arg_count, |
| 350 Node* slot_id, |
| 351 Node* type_feedback_vector, |
| 352 TailCallMode tail_call_mode) { |
| 353 Callable callable = |
| 354 CodeFactory::InterpreterPushArgsAndCallIC(isolate(), tail_call_mode); |
| 355 Node* code_target = HeapConstant(callable.code()); |
| 356 |
| 357 return CallStub(callable.descriptor(), code_target, context, arg_count, |
| 358 first_arg, function, slot_id, type_feedback_vector); |
| 359 } |
| 360 |
| 348 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, | 361 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, |
| 349 Node* new_target, Node* first_arg, | 362 Node* new_target, Node* first_arg, |
| 350 Node* arg_count) { | 363 Node* arg_count) { |
| 351 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); | 364 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); |
| 352 Node* code_target = HeapConstant(callable.code()); | 365 Node* code_target = HeapConstant(callable.code()); |
| 353 return CallStub(callable.descriptor(), code_target, context, arg_count, | 366 return CallStub(callable.descriptor(), code_target, context, arg_count, |
| 354 new_target, constructor, first_arg); | 367 new_target, constructor, first_arg); |
| 355 } | 368 } |
| 356 | 369 |
| 357 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, | 370 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 | 552 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 |
| 540 return true; | 553 return true; |
| 541 #else | 554 #else |
| 542 #error "Unknown Architecture" | 555 #error "Unknown Architecture" |
| 543 #endif | 556 #endif |
| 544 } | 557 } |
| 545 | 558 |
| 546 } // namespace interpreter | 559 } // namespace interpreter |
| 547 } // namespace internal | 560 } // namespace internal |
| 548 } // namespace v8 | 561 } // namespace v8 |
| OLD | NEW |