| Index: src/type-feedback-vector-inl.h | 
| diff --git a/src/type-feedback-vector-inl.h b/src/type-feedback-vector-inl.h | 
| index 015104e96a538a396a515f38c98faa7d4b4cc306..02a567bb350ddeb1f2c2486771e8ac737cef4c63 100644 | 
| --- a/src/type-feedback-vector-inl.h | 
| +++ b/src/type-feedback-vector-inl.h | 
| @@ -32,6 +32,10 @@ TypeFeedbackMetadata* TypeFeedbackMetadata::cast(Object* obj) { | 
| return reinterpret_cast<TypeFeedbackMetadata*>(obj); | 
| } | 
|  | 
| +bool TypeFeedbackMetadata::is_empty() const { | 
| +  if (length() == 0) return true; | 
| +  return false; | 
| +} | 
|  | 
| int TypeFeedbackMetadata::slot_count() const { | 
| if (length() == 0) return 0; | 
| @@ -80,17 +84,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); | 
| } | 
|  | 
|  |