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

Unified Diff: runtime/vm/code_generator_x64.cc

Issue 10005010: Implement object allocation/construction as effect (no result), sequence labels and unchaining fro… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_x64.cc
===================================================================
--- runtime/vm/code_generator_x64.cc (revision 6209)
+++ runtime/vm/code_generator_x64.cc (working copy)
@@ -902,12 +902,8 @@
// taken care of unchaining the context.
if (node_sequence->label() != NULL) {
__ Bind(node_sequence->label()->break_label());
-
- // The context saved on entry must be restored.
- if ((node_sequence == parsed_function_.node_sequence()) &&
- (parsed_function_.saved_context_var() != NULL)) {
- GenerateLoadVariable(CTX, *parsed_function_.saved_context_var());
- }
+ // Outermost sequence cannot have a label.
+ ASSERT(node_sequence != parsed_function_.node_sequence());
}
set_context_level(previous_context_level);
}
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698