Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4164df55d8db6723e2177182dfaa0ce26800960e..dabc1f980050b1f77414e883c2011a6064fbe0d2 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13939,7 +13939,6 @@ WeakCell* Code::CachedWeakCell() { |
return NULL; |
} |
- |
#ifdef ENABLE_DISASSEMBLER |
void DeoptimizationInputData::DeoptimizationInputDataPrint( |
@@ -14202,7 +14201,6 @@ const char* Code::ICState2String(InlineCacheState state) { |
case POLYMORPHIC: return "POLYMORPHIC"; |
case MEGAMORPHIC: return "MEGAMORPHIC"; |
case GENERIC: return "GENERIC"; |
- case DEBUG_STUB: return "DEBUG_STUB"; |
} |
UNREACHABLE(); |
return NULL; |
@@ -14228,7 +14226,10 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT |
os << "major_key = " << (n == NULL ? "null" : n) << "\n"; |
} |
if (is_inline_cache_stub()) { |
- os << "ic_state = " << ICState2String(ic_state()) << "\n"; |
+ if (!IC::ICUseVector(kind())) { |
+ InlineCacheState ic_state = IC::StateFromCode(this); |
+ os << "ic_state = " << ICState2String(ic_state) << "\n"; |
+ } |
PrintExtraICState(os, kind(), extra_ic_state()); |
if (is_compare_ic_stub()) { |
DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); |