Index: src/transitions-inl.h |
diff --git a/src/transitions-inl.h b/src/transitions-inl.h |
index cc4d4b11d4165bac0ebab6d06317f8e902566ba5..6ed86a1407e120b7f5ae279650b01d9c2fd665f5 100644 |
--- a/src/transitions-inl.h |
+++ b/src/transitions-inl.h |
@@ -160,6 +160,15 @@ void TransitionArray::NoIncrementalWriteBarrierSet(int transition_number, |
} |
+void TransitionArray::SetNumberOfTransitions(int number_of_transitions) { |
+ if (IsFullTransitionArray()) { |
+ DCHECK(number_of_transitions <= number_of_transitions_storage()); |
+ WRITE_FIELD(this, kTransitionLengthOffset, |
+ Smi::FromInt(number_of_transitions)); |
+ } |
+} |
+ |
+ |
#undef FIELD_ADDR |
#undef WRITE_FIELD |
#undef CONDITIONAL_WRITE_BARRIER |