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(); |
} |