Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index b73ceedb4c7f6360eb2e125786bad50486b8b3cf..81f4c1d4b0bc5e2f11b720ef5158c7bfd0c29451 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -923,6 +923,20 @@ void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitGeneratorSend(CallRuntime* expr) { |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ ASSERT(args->length() == 2); |
+ EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::SEND); |
+} |
+ |
+ |
+void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ ASSERT(args->length() == 2); |
+ EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); |
+} |
+ |
+ |
void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
switch (expr->op()) { |
case Token::COMMA: |