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 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1852 !AllocationSite::cast(allocation_site())->IsZombie(); | 1852 !AllocationSite::cast(allocation_site())->IsZombie(); |
1853 } | 1853 } |
1854 | 1854 |
1855 | 1855 |
1856 AllocationSite* AllocationMemento::GetAllocationSite() { | 1856 AllocationSite* AllocationMemento::GetAllocationSite() { |
1857 DCHECK(IsValid()); | 1857 DCHECK(IsValid()); |
1858 return AllocationSite::cast(allocation_site()); | 1858 return AllocationSite::cast(allocation_site()); |
1859 } | 1859 } |
1860 | 1860 |
1861 | 1861 |
| 1862 Address AllocationMemento::GetAllocationSiteUnchecked() { |
| 1863 return reinterpret_cast<Address>(allocation_site()); |
| 1864 } |
| 1865 |
| 1866 |
1862 void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) { | 1867 void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) { |
1863 JSObject::ValidateElements(object); | 1868 JSObject::ValidateElements(object); |
1864 ElementsKind elements_kind = object->map()->elements_kind(); | 1869 ElementsKind elements_kind = object->map()->elements_kind(); |
1865 if (!IsFastObjectElementsKind(elements_kind)) { | 1870 if (!IsFastObjectElementsKind(elements_kind)) { |
1866 if (IsFastHoleyElementsKind(elements_kind)) { | 1871 if (IsFastHoleyElementsKind(elements_kind)) { |
1867 TransitionElementsKind(object, FAST_HOLEY_ELEMENTS); | 1872 TransitionElementsKind(object, FAST_HOLEY_ELEMENTS); |
1868 } else { | 1873 } else { |
1869 TransitionElementsKind(object, FAST_ELEMENTS); | 1874 TransitionElementsKind(object, FAST_ELEMENTS); |
1870 } | 1875 } |
1871 } | 1876 } |
(...skipping 5932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7804 #undef WRITE_INT64_FIELD | 7809 #undef WRITE_INT64_FIELD |
7805 #undef READ_BYTE_FIELD | 7810 #undef READ_BYTE_FIELD |
7806 #undef WRITE_BYTE_FIELD | 7811 #undef WRITE_BYTE_FIELD |
7807 #undef NOBARRIER_READ_BYTE_FIELD | 7812 #undef NOBARRIER_READ_BYTE_FIELD |
7808 #undef NOBARRIER_WRITE_BYTE_FIELD | 7813 #undef NOBARRIER_WRITE_BYTE_FIELD |
7809 | 7814 |
7810 } // namespace internal | 7815 } // namespace internal |
7811 } // namespace v8 | 7816 } // namespace v8 |
7812 | 7817 |
7813 #endif // V8_OBJECTS_INL_H_ | 7818 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |