Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: src/objects-inl.h

Issue 1640563004: Reland of "[heap] Parallel newspace evacuation, semispace copy, and compaction \o/" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Convert bogus DCHECK into proper branch Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/utils-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 return allocation_site()->IsAllocationSite() && 1848 return allocation_site()->IsAllocationSite() &&
1849 !AllocationSite::cast(allocation_site())->IsZombie(); 1849 !AllocationSite::cast(allocation_site())->IsZombie();
1850 } 1850 }
1851 1851
1852 1852
1853 AllocationSite* AllocationMemento::GetAllocationSite() { 1853 AllocationSite* AllocationMemento::GetAllocationSite() {
1854 DCHECK(IsValid()); 1854 DCHECK(IsValid());
1855 return AllocationSite::cast(allocation_site()); 1855 return AllocationSite::cast(allocation_site());
1856 } 1856 }
1857 1857
1858 Address AllocationMemento::GetAllocationSiteUnchecked() {
1859 return reinterpret_cast<Address>(allocation_site());
1860 }
1858 1861
1859 void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) { 1862 void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) {
1860 JSObject::ValidateElements(object); 1863 JSObject::ValidateElements(object);
1861 ElementsKind elements_kind = object->map()->elements_kind(); 1864 ElementsKind elements_kind = object->map()->elements_kind();
1862 if (!IsFastObjectElementsKind(elements_kind)) { 1865 if (!IsFastObjectElementsKind(elements_kind)) {
1863 if (IsFastHoleyElementsKind(elements_kind)) { 1866 if (IsFastHoleyElementsKind(elements_kind)) {
1864 TransitionElementsKind(object, FAST_HOLEY_ELEMENTS); 1867 TransitionElementsKind(object, FAST_HOLEY_ELEMENTS);
1865 } else { 1868 } else {
1866 TransitionElementsKind(object, FAST_ELEMENTS); 1869 TransitionElementsKind(object, FAST_ELEMENTS);
1867 } 1870 }
(...skipping 5950 matching lines...) Expand 10 before | Expand all | Expand 10 after
7818 #undef WRITE_INT64_FIELD 7821 #undef WRITE_INT64_FIELD
7819 #undef READ_BYTE_FIELD 7822 #undef READ_BYTE_FIELD
7820 #undef WRITE_BYTE_FIELD 7823 #undef WRITE_BYTE_FIELD
7821 #undef NOBARRIER_READ_BYTE_FIELD 7824 #undef NOBARRIER_READ_BYTE_FIELD
7822 #undef NOBARRIER_WRITE_BYTE_FIELD 7825 #undef NOBARRIER_WRITE_BYTE_FIELD
7823 7826
7824 } // namespace internal 7827 } // namespace internal
7825 } // namespace v8 7828 } // namespace v8
7826 7829
7827 #endif // V8_OBJECTS_INL_H_ 7830 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/utils-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698