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

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

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: simplify AsyncIteratorValueUnwrap Created 3 years, 11 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.h » ('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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 return *this; 832 return *this;
833 } 833 }
834 834
835 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadModuleVariable(int cell_index, 835 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadModuleVariable(int cell_index,
836 int depth) { 836 int depth) {
837 OutputLdaModuleVariable(cell_index, depth); 837 OutputLdaModuleVariable(cell_index, depth);
838 return *this; 838 return *this;
839 } 839 }
840 840
841 BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator( 841 BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator(
842 Register generator) { 842 Register generator, Yield::YieldType type) {
843 OutputSuspendGenerator(generator); 843 if (type == Yield::kNormal || type == Yield::kDelegate) {
844 OutputSuspendGenerator(generator);
845 } else {
846 DCHECK_EQ(type, Yield::kAwait);
847 OutputAwaitGenerator(generator);
848 }
844 return *this; 849 return *this;
845 } 850 }
846 851
847 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( 852 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator(
848 Register generator) { 853 Register generator) {
849 OutputResumeGenerator(generator); 854 OutputResumeGenerator(generator);
850 return *this; 855 return *this;
851 } 856 }
852 857
853 BytecodeArrayBuilder& BytecodeArrayBuilder::MarkHandler( 858 BytecodeArrayBuilder& BytecodeArrayBuilder::MarkHandler(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 RegisterList reg_list) { 1051 RegisterList reg_list) {
1047 DCHECK(RegisterListIsValid(reg_list)); 1052 DCHECK(RegisterListIsValid(reg_list));
1048 if (register_optimizer_) 1053 if (register_optimizer_)
1049 register_optimizer_->PrepareOutputRegisterList(reg_list); 1054 register_optimizer_->PrepareOutputRegisterList(reg_list);
1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1055 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1051 } 1056 }
1052 1057
1053 } // namespace interpreter 1058 } // namespace interpreter
1054 } // namespace internal 1059 } // namespace internal
1055 } // namespace v8 1060 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698