Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 29474b99fd5901cd4e8e9e27fb21a95e84edfd6a..68c99a236456ba941e4d824c3a9cfa7b924ed0f1 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3610,6 +3610,12 @@ bool Map::CanBeDeprecated() { |
} |
+Handle<Map> Map::Update(Handle<Map> map) { |
+ if (!map->is_deprecated()) return map; |
+ return GeneralizeRepresentation(map, 0, Representation::Smi()); |
+} |
+ |
+ |
void Map::NotifyLeafMapLayoutChange() { |
dependent_code()->DeoptimizeDependentCodeGroup( |
GetIsolate(), |