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

Unified Diff: runtime/vm/snapshot.cc

Issue 1004923002: Fix for issue 22778, stored the function object in the forward reference table instead of the impli… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | « no previous file | tests/isolate/issue_22778_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 44447)
+++ runtime/vm/snapshot.cc (working copy)
@@ -243,8 +243,9 @@
// First create a function object and associate it with the specified
// 'object_id'.
- Function& func = Function::ZoneHandle(isolate(), Function::null());
- AddBackRef(object_id, &func, kIsDeserialized);
+ Function& func = Function::Handle(isolate(), Function::null());
+ Instance& obj = Instance::ZoneHandle(isolate(), Instance::null());
+ AddBackRef(object_id, &obj, kIsDeserialized);
// Read the library/class/function information and lookup the function.
str_ ^= ReadObjectImpl();
@@ -273,7 +274,8 @@
ASSERT(!func.IsNull());
// Return the associated implicit static closure.
- return func.ImplicitStaticClosure();
+ obj = func.ImplicitStaticClosure();
+ return obj.raw();
}
« no previous file with comments | « no previous file | tests/isolate/issue_22778_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698