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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 23909002: Implement closurization of regular methods in ObjectMirror.getField in the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/lib/mirrors_impl.dart ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 78efd462b248c9e7e062846ca397b31c56a2fb64..728a9193f2d23d42bdee7b69a4a8ffacf3e03d27 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -2028,7 +2028,7 @@ void EffectGraphVisitor::VisitClosureNode(ClosureNode* node) {
const Function& function = node->function();
if (function.IsImplicitStaticClosureFunction()) {
- Instance& closure = Instance::ZoneHandle();
+/* Instance& closure = Instance::ZoneHandle();
closure ^= function.implicit_static_closure();
if (closure.IsNull()) {
ObjectStore* object_store = Isolate::Current()->object_store();
@@ -2037,6 +2037,10 @@ void EffectGraphVisitor::VisitClosureNode(ClosureNode* node) {
function.set_implicit_static_closure(closure);
}
ReturnDefinition(new ConstantInstr(closure));
+*/
+ const Instance& closure =
+ Instance::ZoneHandle(function.ImplicitStaticClosure());
+ ReturnDefinition(new ConstantInstr(closure));
return;
}
if (function.IsNonImplicitClosureFunction()) {
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698