Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 38409d1d024d483e4c1fa383a23aecd5008f95bf..bbfbc6c2ec3625f77e422501edf66326f60707aa 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -2781,6 +2781,7 @@ MaybeHandle<Map> Map::CurrentMapForDeprecated(Handle<Map> map) { |
// static |
MaybeHandle<Map> Map::CurrentMapForDeprecatedInternal(Handle<Map> old_map) { |
DisallowHeapAllocation no_allocation; |
+ DisallowDeoptimization no_deoptimization(old_map->GetIsolate()); |
if (!old_map->is_deprecated()) return old_map; |