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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), | 940 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), |
941 return_pair); | 941 return_pair); |
942 } | 942 } |
943 | 943 |
944 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, | 944 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, |
945 RegisterList args) { | 945 RegisterList args) { |
946 OutputCallJSRuntime(context_index, args, args.register_count()); | 946 OutputCallJSRuntime(context_index, args, args.register_count()); |
947 return *this; | 947 return *this; |
948 } | 948 } |
949 | 949 |
950 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(RegisterList args) { | 950 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(Register constructor, |
951 OutputNewWithSpread(args, args.register_count()); | 951 RegisterList args) { |
| 952 OutputNewWithSpread(constructor, args, args.register_count()); |
952 return *this; | 953 return *this; |
953 } | 954 } |
954 | 955 |
955 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, | 956 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, |
956 LanguageMode language_mode) { | 957 LanguageMode language_mode) { |
957 if (language_mode == SLOPPY) { | 958 if (language_mode == SLOPPY) { |
958 OutputDeletePropertySloppy(object); | 959 OutputDeletePropertySloppy(object); |
959 } else { | 960 } else { |
960 DCHECK_EQ(language_mode, STRICT); | 961 DCHECK_EQ(language_mode, STRICT); |
961 OutputDeletePropertyStrict(object); | 962 OutputDeletePropertyStrict(object); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 RegisterList reg_list) { | 1044 RegisterList reg_list) { |
1044 DCHECK(RegisterListIsValid(reg_list)); | 1045 DCHECK(RegisterListIsValid(reg_list)); |
1045 if (register_optimizer_) | 1046 if (register_optimizer_) |
1046 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1047 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1047 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1048 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1048 } | 1049 } |
1049 | 1050 |
1050 } // namespace interpreter | 1051 } // namespace interpreter |
1051 } // namespace internal | 1052 } // namespace internal |
1052 } // namespace v8 | 1053 } // namespace v8 |
OLD | NEW |