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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 } | 1794 } |
1795 | 1795 |
1796 // Take another spin if there are now unswept objects in new space | 1796 // Take another spin if there are now unswept objects in new space |
1797 // (there are currently no more unswept promoted objects). | 1797 // (there are currently no more unswept promoted objects). |
1798 } while (new_space_front != new_space_.top()); | 1798 } while (new_space_front != new_space_.top()); |
1799 | 1799 |
1800 return new_space_front; | 1800 return new_space_front; |
1801 } | 1801 } |
1802 | 1802 |
1803 | 1803 |
1804 STATIC_ASSERT((FixedDoubleArray::kHeaderSize & kDoubleAlignmentMask) == 0); | 1804 STATIC_ASSERT((FixedDoubleArray::kHeaderSize & |
1805 STATIC_ASSERT((ConstantPoolArray::kHeaderSize & kDoubleAlignmentMask) == 0); | 1805 kDoubleAlignmentMask) == 0); // NOLINT |
| 1806 STATIC_ASSERT((ConstantPoolArray::kHeaderSize & |
| 1807 kDoubleAlignmentMask) == 0); // NOLINT |
1806 | 1808 |
1807 | 1809 |
1808 INLINE(static HeapObject* EnsureDoubleAligned(Heap* heap, | 1810 INLINE(static HeapObject* EnsureDoubleAligned(Heap* heap, |
1809 HeapObject* object, | 1811 HeapObject* object, |
1810 int size)); | 1812 int size)); |
1811 | 1813 |
1812 static HeapObject* EnsureDoubleAligned(Heap* heap, | 1814 static HeapObject* EnsureDoubleAligned(Heap* heap, |
1813 HeapObject* object, | 1815 HeapObject* object, |
1814 int size) { | 1816 int size) { |
1815 if ((OffsetFrom(object->address()) & kDoubleAlignmentMask) != 0) { | 1817 if ((OffsetFrom(object->address()) & kDoubleAlignmentMask) != 0) { |
(...skipping 4608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6424 static_cast<int>(object_sizes_last_time_[index])); | 6426 static_cast<int>(object_sizes_last_time_[index])); |
6425 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6427 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6426 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6428 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6427 | 6429 |
6428 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6430 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6429 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6431 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6430 ClearObjectStats(); | 6432 ClearObjectStats(); |
6431 } | 6433 } |
6432 | 6434 |
6433 } } // namespace v8::internal | 6435 } } // namespace v8::internal |
OLD | NEW |