Include the canonical static closure when serializing ClosureData.

BUG=http://dartbug.com/25892
R=asiva@google.com

Review URL: https://codereview.chromium.org/1771483002 .
This commit is contained in:
Ryan Macnak 2016-03-07 09:06:26 -08:00
parent f5d284ca9c
commit e880063e88
2 changed files with 2 additions and 7 deletions

View file

@ -732,9 +732,8 @@ void RawClosureData::WriteTo(SnapshotWriter* writer,
// Signature type.
writer->WriteObjectImpl(ptr()->signature_type_, kAsInlinedObject);
// Static closure/Closure allocation stub.
// We don't write the closure or allocation stub in the snapshot.
writer->WriteVMIsolateObject(kNullObject);
// Canonical static closure.
writer->WriteObjectImpl(ptr()->closure_, kAsInlinedObject);
}

View file

@ -161,10 +161,6 @@ stacktrace_message_test: SkipByDesign
static_function_test: SkipByDesign
unresolved_ports_test: SkipByDesign
[ $compiler == precompiler ]
function_send_test: RuntimeError # Issue 25892
message3_test/fun: RuntimeError # Issue 25892
[ $runtime == dart_precompiled || $runtime == dart_product ]
deferred_in_isolate_test: Skip # Isolate.spawnUri
deferred_in_isolate2_test: Skip # Isolate.spawnUri