| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index f86e847802b25a377b8ec6fff41fc8bb0c19ea78..2d346314840fa684011cc86b35e0305923c2b882 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -751,16 +751,6 @@ bool Object::IsDependentCode() {
|
| }
|
|
|
|
|
| -bool Object::IsTypeFeedbackCells() {
|
| - if (!IsFixedArray()) return false;
|
| - // There's actually no way to see the difference between a fixed array and
|
| - // a cache cells array. Since this is used for asserts we can check that
|
| - // the length is plausible though.
|
| - if (FixedArray::cast(this)->length() % 2 != 0) return false;
|
| - return true;
|
| -}
|
| -
|
| -
|
| bool Object::IsContext() {
|
| if (!Object::IsHeapObject()) return false;
|
| Map* map = HeapObject::cast(this)->map();
|
| @@ -2782,7 +2772,6 @@ CAST_ACCESSOR(DescriptorArray)
|
| CAST_ACCESSOR(DeoptimizationInputData)
|
| CAST_ACCESSOR(DeoptimizationOutputData)
|
| CAST_ACCESSOR(DependentCode)
|
| -CAST_ACCESSOR(TypeFeedbackCells)
|
| CAST_ACCESSOR(StringTable)
|
| CAST_ACCESSOR(JSFunctionResultCache)
|
| CAST_ACCESSOR(NormalizedMapCache)
|
| @@ -6551,43 +6540,23 @@ MaybeObject* ConstantPoolArray::Copy() {
|
| }
|
|
|
|
|
| -void TypeFeedbackCells::SetAstId(int index, TypeFeedbackId id) {
|
| - set(1 + index * 2, Smi::FromInt(id.ToInt()));
|
| -}
|
| -
|
| -
|
| -TypeFeedbackId TypeFeedbackCells::AstId(int index) {
|
| - return TypeFeedbackId(Smi::cast(get(1 + index * 2))->value());
|
| -}
|
| -
|
| -
|
| -void TypeFeedbackCells::SetCell(int index, Cell* cell) {
|
| - set(index * 2, cell);
|
| -}
|
| -
|
| -
|
| -Cell* TypeFeedbackCells::GetCell(int index) {
|
| - return Cell::cast(get(index * 2));
|
| -}
|
| -
|
| -
|
| -Handle<Object> TypeFeedbackCells::UninitializedSentinel(Isolate* isolate) {
|
| +Handle<Object> TypeFeedbackInfo::UninitializedSentinel(Isolate* isolate) {
|
| return isolate->factory()->the_hole_value();
|
| }
|
|
|
|
|
| -Handle<Object> TypeFeedbackCells::MegamorphicSentinel(Isolate* isolate) {
|
| +Handle<Object> TypeFeedbackInfo::MegamorphicSentinel(Isolate* isolate) {
|
| return isolate->factory()->undefined_value();
|
| }
|
|
|
|
|
| -Handle<Object> TypeFeedbackCells::MonomorphicArraySentinel(Isolate* isolate,
|
| +Handle<Object> TypeFeedbackInfo::MonomorphicArraySentinel(Isolate* isolate,
|
| ElementsKind elements_kind) {
|
| return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate);
|
| }
|
|
|
|
|
| -Object* TypeFeedbackCells::RawUninitializedSentinel(Heap* heap) {
|
| +Object* TypeFeedbackInfo::RawUninitializedSentinel(Heap* heap) {
|
| return heap->the_hole_value();
|
| }
|
|
|
| @@ -6670,8 +6639,8 @@ bool TypeFeedbackInfo::matches_inlined_type_change_checksum(int checksum) {
|
| }
|
|
|
|
|
| -ACCESSORS(TypeFeedbackInfo, type_feedback_cells, TypeFeedbackCells,
|
| - kTypeFeedbackCellsOffset)
|
| +ACCESSORS(TypeFeedbackInfo, feedback_vector, FixedArray,
|
| + kFeedbackVectorOffset)
|
|
|
|
|
| SMI_ACCESSORS(AliasedArgumentsEntry, aliased_context_slot, kAliasedContextSlot)
|
|
|