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

Unified Diff: src/interpreter/bytecode-generator.cc

Issue 2051423003: [interpreter] support async functions in Ignition (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase / remove pointless edit to debugger test Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/interpreter/bytecode-generator.cc
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
index b8b5daf93dae206ea629af6844a34ced2e2253e4..bdd7637ffbd05441c144e6072473d0c0e3c6c92e 100644
--- a/src/interpreter/bytecode-generator.cc
+++ b/src/interpreter/bytecode-generator.cc
@@ -571,7 +571,7 @@ Handle<BytecodeArray> BytecodeGenerator::MakeBytecode() {
RegisterAllocationScope register_scope(this);
- if (IsGeneratorFunction(info()->literal()->kind())) {
+ if (IsResumableFunction(info()->literal()->kind())) {
generator_state_ = register_allocator()->NewRegister();
VisitGeneratorPrologue();
}
@@ -698,8 +698,8 @@ void BytecodeGenerator::VisitGeneratorPrologue() {
builder()->Bind(&regular_call);
// This is a regular call. Fall through to the ordinary function prologue,
- // after which we will run into the generator object creation and the initial
- // yield (both inserted by the parser).
+ // after which we will run into the generator object creation and other extra
+ // code inserted by the parser.
}
void BytecodeGenerator::VisitBlock(Block* stmt) {

Powered by Google App Engine
This is Rietveld 408576698