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

Unified Diff: runtime/vm/code_generator_ia32.cc

Issue 8490019: Capturing for loop variables correctly (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « runtime/vm/code_generator.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_ia32.cc
===================================================================
--- runtime/vm/code_generator_ia32.cc (revision 1268)
+++ runtime/vm/code_generator_ia32.cc (working copy)
@@ -903,6 +903,17 @@
}
+void CodeGenerator::VisitCloneContextNode(CloneContextNode *node) {
+ const Context& result = Context::ZoneHandle();
+ __ PushObject(result);
+ __ pushl(CTX);
+ GenerateCallRuntime(node->id(),
+ node->token_index(), kCloneContextRuntimeEntry);
+ __ popl(EAX);
+ __ popl(CTX); // result: cloned context. Set as current context.
+}
+
+
void CodeGenerator::VisitSequenceNode(SequenceNode* node_sequence) {
CodeGeneratorState codegen_state(this);
LocalScope* scope = node_sequence->scope();
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698