| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index fb996a219e28df171504916345c496394ab4c3c1..cd4055b589f82a40f324a99332e2e11e45699c0d 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -767,16 +767,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();
|
| @@ -2798,7 +2788,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)
|
| @@ -6567,43 +6556,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();
|
| }
|
|
|
| @@ -6686,8 +6655,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)
|
|
|