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

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

Issue 2894293003: Save/restore only live registers in the generator suspend/resume. (Closed)
Patch Set: Tweak Created 3 years, 7 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
« no previous file with comments | « src/interpreter/bytecode-decoder.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-generator.h
diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h
index 579365952b9fae9bd4fc51e4c902c0b8bd0c4133..cba0a5eef1cc8878855e9fb1bd83c1217d8dc06e 100644
--- a/src/interpreter/bytecode-generator.h
+++ b/src/interpreter/bytecode-generator.h
@@ -136,8 +136,10 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
void BuildNewLocalWithContext(Scope* scope);
void BuildGeneratorPrologue();
- void BuildGeneratorSuspend(Suspend* expr, Register generator);
- void BuildGeneratorResume(Suspend* expr, Register generator);
+ void BuildGeneratorSuspend(Suspend* expr, Register generator,
+ RegisterList registers_to_save);
+ void BuildGeneratorResume(Suspend* expr, Register generator,
+ RegisterList registers_to_restore);
void VisitArgumentsObject(Variable* variable);
void VisitRestArgumentsArray(Variable* rest);
@@ -256,6 +258,7 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
ExpressionResultScope* execution_result_;
BytecodeJumpTable* generator_jump_table_;
+ Register generator_object_;
Register generator_state_;
int loop_depth_;
};
« no previous file with comments | « src/interpreter/bytecode-decoder.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698