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