From 54fb438e882996b2a75ded1fc27e2b5521e7aa1b Mon Sep 17 00:00:00 2001 From: franzih Date: Tue, 4 Oct 2016 07:28:10 -0700 Subject: [PATCH] [IC] Delete unused AddessIsOptimizedCode function. BUG= Review-Url: https://codereview.chromium.org/2387173003 Cr-Commit-Position: refs/heads/master@{#39956} --- src/ic/ic.cc | 7 ------- src/ic/ic.h | 1 - 2 files changed, 8 deletions(-) diff --git a/src/ic/ic.cc b/src/ic/ic.cc index f6642d56cb..bd85896af3 100644 --- a/src/ic/ic.cc +++ b/src/ic/ic.cc @@ -244,13 +244,6 @@ Code* IC::GetCode() const { return code; } - -bool IC::AddressIsOptimizedCode() const { - Code* host = - isolate()->inner_pointer_to_code_cache()->GetCacheEntry(address())->code; - return host->kind() == Code::OPTIMIZED_FUNCTION; -} - static void LookupForRead(LookupIterator* it) { for (; it->IsFound(); it->Next()) { switch (it->state()) { diff --git a/src/ic/ic.h b/src/ic/ic.h index 17dc3895ea..bd89655d6b 100644 --- a/src/ic/ic.h +++ b/src/ic/ic.h @@ -91,7 +91,6 @@ class IC { // Get the code object of the caller. Code* GetCode() const; - bool AddressIsOptimizedCode() const; inline bool AddressIsDeoptimizedCode() const; inline static bool AddressIsDeoptimizedCode(Isolate* isolate, Address address);