Index: src/ic/ic.h |
diff --git a/src/ic/ic.h b/src/ic/ic.h |
index 85c84746ab6b290edc9e6eca4000f753e234337b..bf5811b91b84a2272a72625e0803357ac8db5e94 100644 |
--- a/src/ic/ic.h |
+++ b/src/ic/ic.h |
@@ -63,11 +63,6 @@ class IC { |
Isolate* isolate, |
CacheHolderFlag* flag); |
- static bool IsCleared(Code* code) { |
- InlineCacheState state = code->ic_state(); |
- return !FLAG_use_ic || state == UNINITIALIZED || state == PREMONOMORPHIC; |
- } |
- |
static bool IsCleared(FeedbackNexus* nexus) { |
InlineCacheState state = nexus->StateFromFeedback(); |
return !FLAG_use_ic || state == UNINITIALIZED || state == PREMONOMORPHIC; |
@@ -79,6 +74,8 @@ class IC { |
kind == Code::KEYED_STORE_IC; |
} |
+ static InlineCacheState StateFromCode(Code* code); |
+ |
protected: |
Address fp() const { return fp_; } |
Address pc() const { return *pc_address_; } |