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

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

Issue 2629363002: [Ignition/turbo] Add a CallWithSpread bytecode. (Closed)
Patch Set: reparent on the bytecode CL 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) {
895 OutputCallWithSpread(args, args.register_count());
896 return *this;
897 }
898
894 BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor, 899 BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor,
895 RegisterList args, 900 RegisterList args,
896 int feedback_slot_id) { 901 int feedback_slot_id) {
897 OutputNew(constructor, args, args.register_count(), feedback_slot_id); 902 OutputNew(constructor, args, args.register_count(), feedback_slot_id);
898 return *this; 903 return *this;
899 } 904 }
900 905
901 BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime( 906 BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime(
902 Runtime::FunctionId function_id, RegisterList args) { 907 Runtime::FunctionId function_id, RegisterList args) {
903 DCHECK_EQ(1, Runtime::FunctionForId(function_id)->result_size); 908 DCHECK_EQ(1, Runtime::FunctionForId(function_id)->result_size);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 RegisterList reg_list) { 1049 RegisterList reg_list) {
1045 DCHECK(RegisterListIsValid(reg_list)); 1050 DCHECK(RegisterListIsValid(reg_list));
1046 if (register_optimizer_) 1051 if (register_optimizer_)
1047 register_optimizer_->PrepareOutputRegisterList(reg_list); 1052 register_optimizer_->PrepareOutputRegisterList(reg_list);
1048 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1053 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1049 } 1054 }
1050 1055
1051 } // namespace interpreter 1056 } // namespace interpreter
1052 } // namespace internal 1057 } // namespace internal
1053 } // namespace v8 1058 } // 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