Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 1f6c90869d42c0a2af11adeb2c12e1e943901281..e47ad9a618e24fd4e186c4285b8407bf797be5da 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -89,6 +89,7 @@ const char* GetTransitionMarkModifier(KeyedAccessStoreMode mode) { |
void IC::TraceIC(const char* type, Handle<Object> name) { |
if (FLAG_trace_ic) { |
+ if (AddressIsDeoptimizedCode()) return; |
State new_state = |
UseVector() ? nexus()->StateFromFeedback() : raw_target()->ic_state(); |
TraceIC(type, name, state(), new_state); |
@@ -230,14 +231,6 @@ bool IC::AddressIsOptimizedCode() const { |
} |
-bool IC::AddressIsDeoptimizedCode() const { |
- Code* host = |
- isolate()->inner_pointer_to_code_cache()->GetCacheEntry(address())->code; |
- return host->kind() == Code::OPTIMIZED_FUNCTION && |
- host->marked_for_deoptimization(); |
-} |
- |
- |
static void LookupForRead(LookupIterator* it) { |
for (; it->IsFound(); it->Next()) { |
switch (it->state()) { |