OLD | NEW |
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 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 1858 |
| 1859 Address AllocationMemento::GetAllocationSiteUnchecked() { |
| 1860 return reinterpret_cast<Address>(allocation_site()); |
| 1861 } |
| 1862 |
| 1863 |
1859 void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) { | 1864 void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) { |
1860 JSObject::ValidateElements(object); | 1865 JSObject::ValidateElements(object); |
1861 ElementsKind elements_kind = object->map()->elements_kind(); | 1866 ElementsKind elements_kind = object->map()->elements_kind(); |
1862 if (!IsFastObjectElementsKind(elements_kind)) { | 1867 if (!IsFastObjectElementsKind(elements_kind)) { |
1863 if (IsFastHoleyElementsKind(elements_kind)) { | 1868 if (IsFastHoleyElementsKind(elements_kind)) { |
1864 TransitionElementsKind(object, FAST_HOLEY_ELEMENTS); | 1869 TransitionElementsKind(object, FAST_HOLEY_ELEMENTS); |
1865 } else { | 1870 } else { |
1866 TransitionElementsKind(object, FAST_ELEMENTS); | 1871 TransitionElementsKind(object, FAST_ELEMENTS); |
1867 } | 1872 } |
1868 } | 1873 } |
(...skipping 5941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7810 #undef WRITE_INT64_FIELD | 7815 #undef WRITE_INT64_FIELD |
7811 #undef READ_BYTE_FIELD | 7816 #undef READ_BYTE_FIELD |
7812 #undef WRITE_BYTE_FIELD | 7817 #undef WRITE_BYTE_FIELD |
7813 #undef NOBARRIER_READ_BYTE_FIELD | 7818 #undef NOBARRIER_READ_BYTE_FIELD |
7814 #undef NOBARRIER_WRITE_BYTE_FIELD | 7819 #undef NOBARRIER_WRITE_BYTE_FIELD |
7815 | 7820 |
7816 } // namespace internal | 7821 } // namespace internal |
7817 } // namespace v8 | 7822 } // namespace v8 |
7818 | 7823 |
7819 #endif // V8_OBJECTS_INL_H_ | 7824 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |