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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 return *this; | 613 return *this; |
614 } | 614 } |
615 | 615 |
616 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadIteratorProperty( | 616 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadIteratorProperty( |
617 Register object, int feedback_slot) { | 617 Register object, int feedback_slot) { |
618 size_t name_index = IteratorSymbolConstantPoolEntry(); | 618 size_t name_index = IteratorSymbolConstantPoolEntry(); |
619 OutputLdaNamedProperty(object, name_index, feedback_slot); | 619 OutputLdaNamedProperty(object, name_index, feedback_slot); |
620 return *this; | 620 return *this; |
621 } | 621 } |
622 | 622 |
| 623 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadAsyncIteratorProperty( |
| 624 Register object, int feedback_slot) { |
| 625 size_t name_index = AsyncIteratorSymbolConstantPoolEntry(); |
| 626 OutputLdaNamedProperty(object, name_index, feedback_slot); |
| 627 return *this; |
| 628 } |
| 629 |
623 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( | 630 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( |
624 Register object, Register name, DataPropertyInLiteralFlags flags, | 631 Register object, Register name, DataPropertyInLiteralFlags flags, |
625 int feedback_slot) { | 632 int feedback_slot) { |
626 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); | 633 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); |
627 return *this; | 634 return *this; |
628 } | 635 } |
629 | 636 |
630 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( | 637 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( |
631 Register object, size_t name_index, int feedback_slot, | 638 Register object, size_t name_index, int feedback_slot, |
632 LanguageMode language_mode) { | 639 LanguageMode language_mode) { |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 RegisterList reg_list) { | 1177 RegisterList reg_list) { |
1171 DCHECK(RegisterListIsValid(reg_list)); | 1178 DCHECK(RegisterListIsValid(reg_list)); |
1172 if (register_optimizer_) | 1179 if (register_optimizer_) |
1173 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1180 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1174 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1181 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1175 } | 1182 } |
1176 | 1183 |
1177 } // namespace interpreter | 1184 } // namespace interpreter |
1178 } // namespace internal | 1185 } // namespace internal |
1179 } // namespace v8 | 1186 } // namespace v8 |
OLD | NEW |