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/code-assembler.h" | 5 #include "src/compiler/code-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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 context); | 387 context); |
388 } | 388 } |
389 | 389 |
390 Node* CodeAssembler::TailCallRuntime(Runtime::FunctionId function_id, | 390 Node* CodeAssembler::TailCallRuntime(Runtime::FunctionId function_id, |
391 Node* context, Node* arg1, Node* arg2, | 391 Node* context, Node* arg1, Node* arg2, |
392 Node* arg3, Node* arg4) { | 392 Node* arg3, Node* arg4) { |
393 return raw_assembler_->TailCallRuntime4(function_id, arg1, arg2, arg3, arg4, | 393 return raw_assembler_->TailCallRuntime4(function_id, arg1, arg2, arg3, arg4, |
394 context); | 394 context); |
395 } | 395 } |
396 | 396 |
| 397 Node* CodeAssembler::TailCallRuntime(Runtime::FunctionId function_id, |
| 398 Node* context, Node* arg1, Node* arg2, |
| 399 Node* arg3, Node* arg4, Node* arg5) { |
| 400 return raw_assembler_->TailCallRuntime5(function_id, arg1, arg2, arg3, arg4, |
| 401 arg5, context); |
| 402 } |
| 403 |
397 Node* CodeAssembler::CallStub(Callable const& callable, Node* context, | 404 Node* CodeAssembler::CallStub(Callable const& callable, Node* context, |
398 Node* arg1, size_t result_size) { | 405 Node* arg1, size_t result_size) { |
399 Node* target = HeapConstant(callable.code()); | 406 Node* target = HeapConstant(callable.code()); |
400 return CallStub(callable.descriptor(), target, context, arg1, result_size); | 407 return CallStub(callable.descriptor(), target, context, arg1, result_size); |
401 } | 408 } |
402 | 409 |
403 Node* CodeAssembler::CallStub(Callable const& callable, Node* context, | 410 Node* CodeAssembler::CallStub(Callable const& callable, Node* context, |
404 Node* arg1, Node* arg2, size_t result_size) { | 411 Node* arg1, Node* arg2, size_t result_size) { |
405 Node* target = HeapConstant(callable.code()); | 412 Node* target = HeapConstant(callable.code()); |
406 return CallStub(callable.descriptor(), target, context, arg1, arg2, | 413 return CallStub(callable.descriptor(), target, context, arg1, arg2, |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 } | 876 } |
870 } | 877 } |
871 } | 878 } |
872 | 879 |
873 bound_ = true; | 880 bound_ = true; |
874 } | 881 } |
875 | 882 |
876 } // namespace compiler | 883 } // namespace compiler |
877 } // namespace internal | 884 } // namespace internal |
878 } // namespace v8 | 885 } // namespace v8 |
OLD | NEW |