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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |