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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2649143002: [Turbofan] Implement call with spread bytecode in assembly code. (Closed)
Patch Set: Rename PushArgsMode to InterpreterPushArgsMode Created 3 years, 11 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/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } else { 884 } else {
885 OutputCall(callable, args, args.register_count(), feedback_slot); 885 OutputCall(callable, args, args.register_count(), feedback_slot);
886 } 886 }
887 } else { 887 } else {
888 DCHECK(tail_call_mode == TailCallMode::kAllow); 888 DCHECK(tail_call_mode == TailCallMode::kAllow);
889 OutputTailCall(callable, args, args.register_count(), feedback_slot); 889 OutputTailCall(callable, args, args.register_count(), feedback_slot);
890 } 890 }
891 return *this; 891 return *this;
892 } 892 }
893 893
894 BytecodeArrayBuilder& BytecodeArrayBuilder::CallWithSpread(RegisterList args) { 894 BytecodeArrayBuilder& BytecodeArrayBuilder::CallWithSpread(Register callable,
895 OutputCallWithSpread(args, args.register_count()); 895 RegisterList args) {
896 OutputCallWithSpread(callable, args, args.register_count());
896 return *this; 897 return *this;
897 } 898 }
898 899
899 BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor, 900 BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor,
900 RegisterList args, 901 RegisterList args,
901 int feedback_slot_id) { 902 int feedback_slot_id) {
902 OutputNew(constructor, args, args.register_count(), feedback_slot_id); 903 OutputNew(constructor, args, args.register_count(), feedback_slot_id);
903 return *this; 904 return *this;
904 } 905 }
905 906
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 RegisterList reg_list) { 1050 RegisterList reg_list) {
1050 DCHECK(RegisterListIsValid(reg_list)); 1051 DCHECK(RegisterListIsValid(reg_list));
1051 if (register_optimizer_) 1052 if (register_optimizer_)
1052 register_optimizer_->PrepareOutputRegisterList(reg_list); 1053 register_optimizer_->PrepareOutputRegisterList(reg_list);
1053 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1054 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1054 } 1055 }
1055 1056
1056 } // namespace interpreter 1057 } // namespace interpreter
1057 } // namespace internal 1058 } // namespace internal
1058 } // namespace v8 1059 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698