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:
Florian Schneider 2016-09-23 13:07:16 -07:00
parent bc119f28bb
commit fac7314c4c

View file

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