Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index b01b4431581a1f85184c46d643a26fc00ac62636..bbb1fb8d8ee7b1d72226a951ab1645d2a7e90a8d 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -332,8 +332,7 @@ int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) { |
// Called by Code::CodePrint. |
void Disassembler::Decode(FILE* f, Code* code) { |
Isolate* isolate = code->GetIsolate(); |
- int decode_size = (code->kind() == Code::OPTIMIZED_FUNCTION || |
- code->kind() == Code::COMPILED_STUB) |
+ int decode_size = code->is_crankshafted() |
? static_cast<int>(code->safepoint_table_offset()) |
: code->instruction_size(); |
// If there might be a back edge table, stop before reaching it. |