Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2317823002: [turbofan] Add support for tail-calling a runtime function with 6 arguments. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 context); 425 context);
426 } 426 }
427 427
428 Node* CodeAssembler::TailCallRuntime(Runtime::FunctionId function_id, 428 Node* CodeAssembler::TailCallRuntime(Runtime::FunctionId function_id,
429 Node* context, Node* arg1, Node* arg2, 429 Node* context, Node* arg1, Node* arg2,
430 Node* arg3, Node* arg4, Node* arg5) { 430 Node* arg3, Node* arg4, Node* arg5) {
431 return raw_assembler_->TailCallRuntime5(function_id, arg1, arg2, arg3, arg4, 431 return raw_assembler_->TailCallRuntime5(function_id, arg1, arg2, arg3, arg4,
432 arg5, context); 432 arg5, context);
433 } 433 }
434 434
435 Node* CodeAssembler::TailCallRuntime(Runtime::FunctionId function_id,
436 Node* context, Node* arg1, Node* arg2,
437 Node* arg3, Node* arg4, Node* arg5,
438 Node* arg6) {
439 return raw_assembler_->TailCallRuntime6(function_id, arg1, arg2, arg3, arg4,
440 arg5, arg6, context);
441 }
442
435 Node* CodeAssembler::CallStub(Callable const& callable, Node* context, 443 Node* CodeAssembler::CallStub(Callable const& callable, Node* context,
436 Node* arg1, size_t result_size) { 444 Node* arg1, size_t result_size) {
437 Node* target = HeapConstant(callable.code()); 445 Node* target = HeapConstant(callable.code());
438 return CallStub(callable.descriptor(), target, context, arg1, result_size); 446 return CallStub(callable.descriptor(), target, context, arg1, result_size);
439 } 447 }
440 448
441 Node* CodeAssembler::CallStub(Callable const& callable, Node* context, 449 Node* CodeAssembler::CallStub(Callable const& callable, Node* context,
442 Node* arg1, Node* arg2, size_t result_size) { 450 Node* arg1, Node* arg2, size_t result_size) {
443 Node* target = HeapConstant(callable.code()); 451 Node* target = HeapConstant(callable.code());
444 return CallStub(callable.descriptor(), target, context, arg1, arg2, 452 return CallStub(callable.descriptor(), target, context, arg1, arg2,
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 } 1087 }
1080 } 1088 }
1081 } 1089 }
1082 1090
1083 bound_ = true; 1091 bound_ = true;
1084 } 1092 }
1085 1093
1086 } // namespace compiler 1094 } // namespace compiler
1087 } // namespace internal 1095 } // namespace internal
1088 } // namespace v8 1096 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698