| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 13ae603520b222ff9f4a6bdfacbf57718742af15..b165ad46382603f918f6f42d5fa55e960abcbba7 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1312,7 +1312,7 @@ void JSObject::ValidateElements() {
|
|
|
|
|
| bool JSObject::ShouldTrackAllocationInfo() {
|
| - if (map()->CanTrackAllocationSite()) {
|
| + if (AllocationSite::CanTrack(map()->instance_type())) {
|
| if (!IsJSArray()) {
|
| return true;
|
| }
|
| @@ -1349,6 +1349,11 @@ AllocationSiteMode AllocationSite::GetMode(ElementsKind from,
|
| }
|
|
|
|
|
| +inline bool AllocationSite::CanTrack(InstanceType type) {
|
| + return type == JS_ARRAY_TYPE;
|
| +}
|
| +
|
| +
|
| MaybeObject* JSObject::EnsureCanContainHeapObjectElements() {
|
| ValidateElements();
|
| ElementsKind elements_kind = map()->elements_kind();
|
| @@ -3593,11 +3598,6 @@ Code::Flags Code::flags() {
|
| }
|
|
|
|
|
| -inline bool Map::CanTrackAllocationSite() {
|
| - return instance_type() == JS_ARRAY_TYPE;
|
| -}
|
| -
|
| -
|
| void Map::set_owns_descriptors(bool is_shared) {
|
| set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared));
|
| }
|
|
|