Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 6e8d148661ff4053e4c9db521953ffd7f8fa13ca..a6e48795bc0c634ab02af538314130a6107f6fc3 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3232,6 +3232,7 @@ int Code::arguments_count() { |
int Code::major_key() { |
ASSERT(kind() == STUB || |
+ kind() == COMPILED_STUB || |
kind() == UNARY_OP_IC || |
kind() == BINARY_OP_IC || |
kind() == COMPARE_IC || |
@@ -3243,6 +3244,7 @@ int Code::major_key() { |
void Code::set_major_key(int major) { |
ASSERT(kind() == STUB || |
+ kind() == COMPILED_STUB || |
kind() == UNARY_OP_IC || |
kind() == BINARY_OP_IC || |
kind() == COMPARE_IC || |
@@ -3351,7 +3353,7 @@ void Code::set_profiler_ticks(int ticks) { |
unsigned Code::stack_slots() { |
- ASSERT(kind() == OPTIMIZED_FUNCTION); |
+ ASSERT(kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB); |
return StackSlotsField::decode( |
READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); |
} |
@@ -3359,7 +3361,7 @@ unsigned Code::stack_slots() { |
void Code::set_stack_slots(unsigned slots) { |
CHECK(slots <= (1 << kStackSlotsBitCount)); |
- ASSERT(kind() == OPTIMIZED_FUNCTION); |
+ ASSERT(kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB); |
int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); |
int updated = StackSlotsField::update(previous, slots); |
WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); |
@@ -3367,7 +3369,7 @@ void Code::set_stack_slots(unsigned slots) { |
unsigned Code::safepoint_table_offset() { |
- ASSERT(kind() == OPTIMIZED_FUNCTION); |
+ ASSERT(kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB); |
return SafepointTableOffsetField::decode( |
READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); |
} |
@@ -3375,7 +3377,7 @@ unsigned Code::safepoint_table_offset() { |
void Code::set_safepoint_table_offset(unsigned offset) { |
CHECK(offset <= (1 << kSafepointTableOffsetBitCount)); |
- ASSERT(kind() == OPTIMIZED_FUNCTION); |
+ ASSERT(kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB); |
ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); |
int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset); |
int updated = SafepointTableOffsetField::update(previous, offset); |