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

Unified Diff: src/interpreter/bytecodes.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-register-optimizer.cc ('k') | src/interpreter/interpreter-assembler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecodes.h
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
index a6c6d0be34761e9153789e2fb672ff4b322e66cd..805c4e3ff326150590a959bfb2f300ed0c69663d 100644
--- a/src/interpreter/bytecodes.h
+++ b/src/interpreter/bytecodes.h
@@ -315,9 +315,11 @@ namespace interpreter {
V(Return, AccumulatorUse::kRead) \
\
/* Generators */ \
+ V(RestoreGeneratorState, AccumulatorUse::kWrite, OperandType::kReg) \
V(SuspendGenerator, AccumulatorUse::kRead, OperandType::kReg, \
- OperandType::kFlag8) \
- V(ResumeGenerator, AccumulatorUse::kWrite, OperandType::kReg) \
+ OperandType::kRegList, OperandType::kRegCount, OperandType::kFlag8) \
+ V(RestoreGeneratorRegisters, AccumulatorUse::kNone, OperandType::kReg, \
+ OperandType::kRegOutList, OperandType::kRegCount) \
\
/* Debugger */ \
V(Debugger, AccumulatorUse::kNone) \
@@ -821,6 +823,7 @@ class V8_EXPORT_PRIVATE Bytecodes final {
case OperandType::kRegOutTriple:
return 3;
case OperandType::kRegList:
+ case OperandType::kRegOutList:
UNREACHABLE();
default:
return 0;
« no previous file with comments | « src/interpreter/bytecode-register-optimizer.cc ('k') | src/interpreter/interpreter-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698