Index: src/safepoint-table.cc |
diff --git a/src/safepoint-table.cc b/src/safepoint-table.cc |
index 9e423045aec59c01d7fca266e83116ec09096d24..b56556572ebcd03fba08260f6793784e945961dd 100644 |
--- a/src/safepoint-table.cc |
+++ b/src/safepoint-table.cc |
@@ -59,8 +59,7 @@ bool SafepointEntry::HasRegisterAt(int reg_index) const { |
SafepointTable::SafepointTable(Code* code) { |
- ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION || |
- code->kind() == Code::COMPILED_STUB); |
+ ASSERT(code->is_crankshafted()); |
code_ = code; |
Address header = code->instruction_start() + code->safepoint_table_offset(); |
length_ = Memory::uint32_at(header + kLengthOffset); |