Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index f5295b6e28256166729a540e357fb4bec1865479..586fcad3ad56b1b932d6e09ef5edc82d2b7f245e 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -771,7 +771,7 @@ bool IC::UpdatePolymorphicIC(Handle<Name> name, Handle<Object> handler) { |
int number_of_valid_maps = |
number_of_maps - deprecated_maps - (handler_to_overwrite != -1); |
- if (number_of_valid_maps >= 4) return false; |
+ if (number_of_valid_maps >= kMaxPolymorphicMapCount) return false; |
if (number_of_maps == 0 && state() != MONOMORPHIC && state() != POLYMORPHIC) { |
return false; |
} |