Chromium Code Reviews| Index: src/x64/full-codegen-x64.cc |
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
| index fa550a5b7bc8829e905072e7cad4eb77c65c97c7..013cd60802451f14fe9f0956d2c0632ec4e2c937 100644 |
| --- a/src/x64/full-codegen-x64.cc |
| +++ b/src/x64/full-codegen-x64.cc |
| @@ -284,6 +284,14 @@ void FullCodeGenerator::Generate() { |
| __ bind(&ok); |
| } |
| + if (function()->is_generator()) { |
|
wingo
2013/04/03 16:36:24
How to communicate this iterator object from its a
|
| + Comment cmnt(masm_, "[ Generator Iterator"); |
| + __ push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
| + __ CallRuntime(Runtime::kCreateJSGeneratorIterator, 1); |
| + // TODO(wingo): Suspend the generator. |
| + EmitReturnSequence(); |
| + } |
| + |
| { Comment cmnt(masm_, "[ Body"); |
| ASSERT(loop_depth() == 0); |
| VisitStatements(function()->body()); |