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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), | 919 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), |
920 return_pair); | 920 return_pair); |
921 } | 921 } |
922 | 922 |
923 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, | 923 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, |
924 RegisterList args) { | 924 RegisterList args) { |
925 OutputCallJSRuntime(context_index, args, args.register_count()); | 925 OutputCallJSRuntime(context_index, args, args.register_count()); |
926 return *this; | 926 return *this; |
927 } | 927 } |
928 | 928 |
| 929 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(RegisterList args) { |
| 930 OutputNewWithSpread(args, args.register_count()); |
| 931 return *this; |
| 932 } |
| 933 |
929 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, | 934 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, |
930 LanguageMode language_mode) { | 935 LanguageMode language_mode) { |
931 if (language_mode == SLOPPY) { | 936 if (language_mode == SLOPPY) { |
932 OutputDeletePropertySloppy(object); | 937 OutputDeletePropertySloppy(object); |
933 } else { | 938 } else { |
934 DCHECK_EQ(language_mode, STRICT); | 939 DCHECK_EQ(language_mode, STRICT); |
935 OutputDeletePropertyStrict(object); | 940 OutputDeletePropertyStrict(object); |
936 } | 941 } |
937 return *this; | 942 return *this; |
938 } | 943 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 RegisterList reg_list) { | 1020 RegisterList reg_list) { |
1016 DCHECK(RegisterListIsValid(reg_list)); | 1021 DCHECK(RegisterListIsValid(reg_list)); |
1017 if (register_optimizer_) | 1022 if (register_optimizer_) |
1018 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1023 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1019 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1024 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1020 } | 1025 } |
1021 | 1026 |
1022 } // namespace interpreter | 1027 } // namespace interpreter |
1023 } // namespace internal | 1028 } // namespace internal |
1024 } // namespace v8 | 1029 } // namespace v8 |
OLD | NEW |