Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2637403008: [async-iteration] add support for for-await-of loops in Async Functions (Closed)
Patch Set: remove that comment Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698