Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index b85a508b1c9a67b299ce1bc2484970bd4a1ef94a..07f124514093e6faca0e8b7270545ae99503ed98 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -9,6 +9,7 @@ |
#include "src/debug/debug.h" |
#include "src/deoptimizer.h" |
#include "src/disasm.h" |
+#include "src/ic/ic.h" |
#include "src/macro-assembler.h" |
#include "src/snapshot/serializer-common.h" |
#include "src/string-stream.h" |
@@ -205,9 +206,11 @@ static int DecodeIt(Isolate* isolate, std::ostream* os, |
NOT_INSIDE_TYPEOF) { |
out.AddFormatted(" contextual,"); |
} |
- InlineCacheState ic_state = code->ic_state(); |
- out.AddFormatted(" %s, %s", Code::Kind2String(kind), |
- Code::ICState2String(ic_state)); |
+ out.AddFormatted(" %s", Code::Kind2String(kind)); |
+ if (!IC::ICUseVector(kind)) { |
+ InlineCacheState ic_state = IC::StateFromCode(code); |
+ out.AddFormatted(" %s", Code::ICState2String(ic_state)); |
+ } |
} else if (kind == Code::STUB || kind == Code::HANDLER) { |
// Get the STUB key and extract major and minor key. |
uint32_t key = code->stub_key(); |