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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1822 heap->CreateFillerObjectAt(object->address(), kPointerSize); | 1822 heap->CreateFillerObjectAt(object->address(), kPointerSize); |
1823 return HeapObject::FromAddress(object->address() + kPointerSize); | 1823 return HeapObject::FromAddress(object->address() + kPointerSize); |
1824 } else { | 1824 } else { |
1825 heap->CreateFillerObjectAt(object->address() + size - kPointerSize, | 1825 heap->CreateFillerObjectAt(object->address() + size - kPointerSize, |
1826 kPointerSize); | 1826 kPointerSize); |
1827 return object; | 1827 return object; |
1828 } | 1828 } |
1829 } | 1829 } |
1830 | 1830 |
1831 | 1831 |
1832 HeapObject* Heap::DoubleAlignForDeserialization(HeapObject* object, int size) { | |
1833 return EnsureDoubleAligned(this, object, size); | |
rmcilroy
2014/11/26 17:44:40
Could you add an ASSERT(object->NeedsToEnsureDoubl
Yang
2014/11/26 18:59:49
Unfortunately, at this point, the object is no mor
rmcilroy
2014/11/26 19:24:46
Right enough. Your suggestion stgt. It doesn't qu
| |
1834 } | |
1835 | |
1836 | |
1832 enum LoggingAndProfiling { | 1837 enum LoggingAndProfiling { |
1833 LOGGING_AND_PROFILING_ENABLED, | 1838 LOGGING_AND_PROFILING_ENABLED, |
1834 LOGGING_AND_PROFILING_DISABLED | 1839 LOGGING_AND_PROFILING_DISABLED |
1835 }; | 1840 }; |
1836 | 1841 |
1837 | 1842 |
1838 enum MarksHandling { TRANSFER_MARKS, IGNORE_MARKS }; | 1843 enum MarksHandling { TRANSFER_MARKS, IGNORE_MARKS }; |
1839 | 1844 |
1840 | 1845 |
1841 template <MarksHandling marks_handling, | 1846 template <MarksHandling marks_handling, |
(...skipping 4469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6311 static_cast<int>(object_sizes_last_time_[index])); | 6316 static_cast<int>(object_sizes_last_time_[index])); |
6312 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6317 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6313 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6318 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6314 | 6319 |
6315 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6320 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6316 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6321 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6317 ClearObjectStats(); | 6322 ClearObjectStats(); |
6318 } | 6323 } |
6319 } | 6324 } |
6320 } // namespace v8::internal | 6325 } // namespace v8::internal |
OLD | NEW |