| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 | 336 |
| 337 Node* InterpreterAssembler::CallJS(Node* function, Node* context, | 337 Node* InterpreterAssembler::CallJS(Node* function, Node* context, |
| 338 Node* first_arg, Node* arg_count) { | 338 Node* first_arg, Node* arg_count) { |
| 339 Callable callable = CodeFactory::InterpreterPushArgsAndCall(isolate()); | 339 Callable callable = CodeFactory::InterpreterPushArgsAndCall(isolate()); |
| 340 Node* code_target = HeapConstant(callable.code()); | 340 Node* code_target = HeapConstant(callable.code()); |
| 341 return CallStub(callable.descriptor(), code_target, context, arg_count, | 341 return CallStub(callable.descriptor(), code_target, context, arg_count, |
| 342 first_arg, function); | 342 first_arg, function); |
| 343 } | 343 } |
| 344 | 344 |
| 345 Node* InterpreterAssembler::CallJSWithFeedback(Node* function, Node* context, |
| 346 Node* first_arg, Node* arg_count, |
| 347 Node* slot_id, |
| 348 Node* type_feedback_vector) { |
| 349 Callable callable = CodeFactory::InterpreterPushArgsAndCallIC(isolate()); |
| 350 Node* code_target = HeapConstant(callable.code()); |
| 351 |
| 352 return CallStub(callable.descriptor(), code_target, context, arg_count, |
| 353 first_arg, function, slot_id, type_feedback_vector); |
| 354 } |
| 355 |
| 345 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, | 356 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, |
| 346 Node* new_target, Node* first_arg, | 357 Node* new_target, Node* first_arg, |
| 347 Node* arg_count) { | 358 Node* arg_count) { |
| 348 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); | 359 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); |
| 349 Node* code_target = HeapConstant(callable.code()); | 360 Node* code_target = HeapConstant(callable.code()); |
| 350 return CallStub(callable.descriptor(), code_target, context, arg_count, | 361 return CallStub(callable.descriptor(), code_target, context, arg_count, |
| 351 new_target, constructor, first_arg); | 362 new_target, constructor, first_arg); |
| 352 } | 363 } |
| 353 | 364 |
| 354 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, | 365 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 | 503 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 |
| 493 return true; | 504 return true; |
| 494 #else | 505 #else |
| 495 #error "Unknown Architecture" | 506 #error "Unknown Architecture" |
| 496 #endif | 507 #endif |
| 497 } | 508 } |
| 498 | 509 |
| 499 } // namespace interpreter | 510 } // namespace interpreter |
| 500 } // namespace internal | 511 } // namespace internal |
| 501 } // namespace v8 | 512 } // namespace v8 |
| OLD | NEW |