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

Side by Side Diff: src/heap/spaces.h

Issue 2562273004: Revert of [heap] Initialize the owner on each page after lospace allocation (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | src/heap/spaces-inl.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #ifndef V8_HEAP_SPACES_H_ 5 #ifndef V8_HEAP_SPACES_H_
6 #define V8_HEAP_SPACES_H_ 6 #define V8_HEAP_SPACES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 kSweepingPending, 310 kSweepingPending,
311 kSweepingInProgress, 311 kSweepingInProgress,
312 }; 312 };
313 313
314 static const intptr_t kAlignment = 314 static const intptr_t kAlignment =
315 (static_cast<uintptr_t>(1) << kPageSizeBits); 315 (static_cast<uintptr_t>(1) << kPageSizeBits);
316 316
317 static const intptr_t kAlignmentMask = kAlignment - 1; 317 static const intptr_t kAlignmentMask = kAlignment - 1;
318 318
319 static const intptr_t kSizeOffset = 0; 319 static const intptr_t kSizeOffset = 0;
320 static const intptr_t kFlagsOffset = kSizeOffset + kSizetSize; 320
321 static const intptr_t kAreaStartOffset = kFlagsOffset + kIntptrSize; 321 static const intptr_t kFlagsOffset = kSizeOffset + kPointerSize;
322 static const intptr_t kAreaEndOffset = kAreaStartOffset + kPointerSize;
323 static const intptr_t kReservationOffset = kAreaEndOffset + kPointerSize;
324 static const intptr_t kOwnerOffset = kReservationOffset + 2 * kPointerSize;
325 322
326 static const size_t kMinHeaderSize = 323 static const size_t kMinHeaderSize =
327 kSizeOffset + kSizetSize // size_t size 324 kSizeOffset + kSizetSize // size_t size
328 + kIntptrSize // Flags flags_ 325 + kIntptrSize // Flags flags_
329 + kPointerSize // Address area_start_ 326 + kPointerSize // Address area_start_
330 + kPointerSize // Address area_end_ 327 + kPointerSize // Address area_end_
331 + 2 * kPointerSize // base::VirtualMemory reservation_ 328 + 2 * kPointerSize // base::VirtualMemory reservation_
332 + kPointerSize // Address owner_ 329 + kPointerSize // Address owner_
333 + kPointerSize // Heap* heap_ 330 + kPointerSize // Heap* heap_
334 + kIntSize // int progress_bar_ 331 + kIntSize // int progress_bar_
(...skipping 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after
2905 PageIterator old_iterator_; 2902 PageIterator old_iterator_;
2906 PageIterator code_iterator_; 2903 PageIterator code_iterator_;
2907 PageIterator map_iterator_; 2904 PageIterator map_iterator_;
2908 LargePageIterator lo_iterator_; 2905 LargePageIterator lo_iterator_;
2909 }; 2906 };
2910 2907
2911 } // namespace internal 2908 } // namespace internal
2912 } // namespace v8 2909 } // namespace v8
2913 2910
2914 #endif // V8_HEAP_SPACES_H_ 2911 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/spaces-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698