Index: src/ic/ic.h |
diff --git a/src/ic/ic.h b/src/ic/ic.h |
index a9eae10b3c8eb524e1c492a58e59b6994cc64c74..4da6e7ceccf5453f447339c627c6013ac3c6d405 100644 |
--- a/src/ic/ic.h |
+++ b/src/ic/ic.h |
@@ -104,12 +104,12 @@ class IC { |
static bool IsCleared(Code* code) { |
InlineCacheState state = code->ic_state(); |
- return state == UNINITIALIZED || state == PREMONOMORPHIC; |
+ return !FLAG_use_ic || state == UNINITIALIZED || state == PREMONOMORPHIC; |
} |
static bool IsCleared(FeedbackNexus* nexus) { |
InlineCacheState state = nexus->StateFromFeedback(); |
- return state == UNINITIALIZED || state == PREMONOMORPHIC; |
+ return !FLAG_use_ic || state == UNINITIALIZED || state == PREMONOMORPHIC; |
} |
static bool ICUseVector(Code::Kind kind) { |