mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 20:39:38 +00:00
Preserve canonical bit of static closures on reload.
BUG=#27364 R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/2362693005 .
This commit is contained in:
parent
bc119f28bb
commit
fac7314c4c
|
@ -392,6 +392,9 @@ void Class::MigrateImplicitStaticClosures(IsolateReloadContext* irc,
|
|||
old_closure = old_func.ImplicitStaticClosure();
|
||||
new_func = new_func.ImplicitClosureFunction();
|
||||
new_closure = new_func.ImplicitStaticClosure();
|
||||
if (old_closure.IsCanonical()) {
|
||||
new_closure.SetCanonical();
|
||||
}
|
||||
irc->AddBecomeMapping(old_closure, new_closure);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue