| 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/compiler/interpreter-assembler.h" | 5 #include "src/compiler/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/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 577 |
| 578 Node** args = zone()->NewArray<Node*>(4); | 578 Node** args = zone()->NewArray<Node*>(4); |
| 579 args[0] = arg_count; | 579 args[0] = arg_count; |
| 580 args[1] = first_arg; | 580 args[1] = first_arg; |
| 581 args[2] = function_entry; | 581 args[2] = function_entry; |
| 582 args[3] = GetContext(); | 582 args[3] = GetContext(); |
| 583 | 583 |
| 584 return CallN(descriptor, code_target, args); | 584 return CallN(descriptor, code_target, args); |
| 585 } | 585 } |
| 586 | 586 |
| 587 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id) { |
| 588 CallPrologue(); |
| 589 Node* return_val = raw_assembler_->CallRuntime0(function_id, GetContext()); |
| 590 return return_val; |
| 591 } |
| 587 | 592 |
| 588 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id, | 593 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id, |
| 589 Node* arg1) { | 594 Node* arg1) { |
| 590 CallPrologue(); | 595 CallPrologue(); |
| 591 Node* return_val = | 596 Node* return_val = |
| 592 raw_assembler_->CallRuntime1(function_id, arg1, GetContext()); | 597 raw_assembler_->CallRuntime1(function_id, arg1, GetContext()); |
| 593 return return_val; | 598 return return_val; |
| 594 } | 599 } |
| 595 | 600 |
| 596 | 601 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 return raw_assembler_->call_descriptor(); | 756 return raw_assembler_->call_descriptor(); |
| 752 } | 757 } |
| 753 | 758 |
| 754 | 759 |
| 755 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 760 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
| 756 | 761 |
| 757 | 762 |
| 758 } // namespace compiler | 763 } // namespace compiler |
| 759 } // namespace internal | 764 } // namespace internal |
| 760 } // namespace v8 | 765 } // namespace v8 |
| OLD | NEW |