| Index: src/type-feedback-vector-inl.h
|
| diff --git a/src/type-feedback-vector-inl.h b/src/type-feedback-vector-inl.h
|
| index 97df1b9ae994abac87a7615d865a08bede05192c..f3f5929fef20e26f5462625a44d138ffa5db6292 100644
|
| --- a/src/type-feedback-vector-inl.h
|
| +++ b/src/type-feedback-vector-inl.h
|
| @@ -80,17 +80,17 @@ FeedbackVectorSlotKind TypeFeedbackVector::GetKind(
|
| return metadata()->GetKind(slot);
|
| }
|
|
|
| -
|
| -int TypeFeedbackVector::GetIndex(FeedbackVectorSlot slot) const {
|
| - DCHECK(slot.ToInt() < slot_count());
|
| +// static
|
| +int TypeFeedbackVector::GetIndex(FeedbackVectorSlot slot) {
|
| return kReservedIndexCount + slot.ToInt();
|
| }
|
|
|
|
|
| // Conversion from an integer index to either a slot or an ic slot. The caller
|
| // should know what kind she expects.
|
| -FeedbackVectorSlot TypeFeedbackVector::ToSlot(int index) const {
|
| - DCHECK(index >= kReservedIndexCount && index < length());
|
| +// static
|
| +FeedbackVectorSlot TypeFeedbackVector::ToSlot(int index) {
|
| + DCHECK(index >= kReservedIndexCount);
|
| return FeedbackVectorSlot(index - kReservedIndexCount);
|
| }
|
|
|
|
|