Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 15e553bcf87b6b3b48ec80b4c6efb736eae10e40..72421437f9b7e1cfced285166bca2e4767313467 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -941,6 +941,24 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::ForInStep(Register index) { |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator( |
+ Register generator) { |
+ OperandScale operand_scale = OperandSizesToScale(generator.SizeOfOperand()); |
+ OutputScaled(Bytecode::kSuspendGenerator, operand_scale, |
+ RegisterOperand(generator)); |
+ return *this; |
+} |
+ |
+ |
+BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( |
+ Register generator) { |
+ OperandScale operand_scale = OperandSizesToScale(generator.SizeOfOperand()); |
+ OutputScaled(Bytecode::kResumeGenerator, operand_scale, |
+ RegisterOperand(generator)); |
+ return *this; |
+} |
+ |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::MarkHandler(int handler_id, |
bool will_catch) { |
handler_table_builder()->SetHandlerTarget(handler_id, bytecodes()->size()); |