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

Unified Diff: src/factory.cc

Issue 2502393002: [ic] Invalidate prototype validity cell when a slow prototype becomes fast. (Closed)
Patch Set: Addressing comments Created 4 years, 1 month 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 | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index ec30d5a0dbd44ae5c9f37d8d2ae7a49986551d2b..3e812d56e30a87449eaab456869c60f9bad2439a 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2219,12 +2219,11 @@ void Factory::ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> object,
// The proxy's hash should be retained across reinitialization.
Handle<Object> hash(object->hash(), isolate());
- JSObject::InvalidatePrototypeChains(*old_map);
if (old_map->is_prototype_map()) {
map = Map::Copy(map, "CopyAsPrototypeForJSGlobalProxy");
map->set_is_prototype_map(true);
}
- JSObject::UpdatePrototypeUserRegistration(old_map, map, isolate());
+ JSObject::NotifyMapChange(old_map, map, isolate());
// Check that the already allocated object has the same size and type as
// objects allocated using the constructor.
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698