Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 6314955b13749fbcc7abd71d535cc0225c9604f7..329a0c562b25407036bb24d51bb6e2398da2e6d5 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8279,7 +8279,8 @@ void Code::ClearTypeFeedbackCells(Heap* heap) { |
bool Code::allowed_in_shared_map_code_cache() { |
- return is_keyed_load_stub() || is_keyed_store_stub(); |
+ return is_keyed_load_stub() || is_keyed_store_stub() || |
+ (is_compare_ic_stub() && compare_state() == CompareIC::KNOWN_OBJECTS); |
} |