Index: src/interpreter/bytecode-register-optimizer.h |
diff --git a/src/interpreter/bytecode-register-optimizer.h b/src/interpreter/bytecode-register-optimizer.h |
index 494abb6c96c9e8b7fec2fe5beb530d86cb675f8f..3ec2c657d0a036e42ce3c54df7220ab2763b0488 100644 |
--- a/src/interpreter/bytecode-register-optimizer.h |
+++ b/src/interpreter/bytecode-register-optimizer.h |
@@ -67,7 +67,7 @@ class V8_EXPORT_PRIVATE BytecodeRegisterOptimizer final |
if (Bytecodes::IsJump(bytecode) || Bytecodes::IsSwitch(bytecode) || |
bytecode == Bytecode::kDebugger || |
bytecode == Bytecode::kSuspendGenerator || |
- bytecode == Bytecode::kResumeGenerator) { |
+ bytecode == Bytecode::kRestoreGeneratorRegisters) { |
// All state must be flushed before emitting |
// - a jump bytecode (as the register equivalents at the jump target |
// aren't known) |
@@ -75,7 +75,7 @@ class V8_EXPORT_PRIVATE BytecodeRegisterOptimizer final |
// aren't known) |
// - a call to the debugger (as it can manipulate locals and parameters), |
// - a generator suspend (as this involves saving all registers). |
- // - a generator resume (as this involves restoring all registers). |
+ // - a generator register restore. |
Flush(); |
} |