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

Side by Side Diff: src/heap.cc

Issue 314723002: Fixed lint errors caused by "runtime/references" rule and the rule itself is restored. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.h ('k') | src/hydrogen-instructions.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 #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
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
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
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698