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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Heap.h

Issue 1804863002: Refactor RegionTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 static void decommitCallbackStacks(); 311 static void decommitCallbackStacks();
312 312
313 static CallbackStack* s_markingStack; 313 static CallbackStack* s_markingStack;
314 static CallbackStack* s_postMarkingCallbackStack; 314 static CallbackStack* s_postMarkingCallbackStack;
315 static CallbackStack* s_globalWeakCallbackStack; 315 static CallbackStack* s_globalWeakCallbackStack;
316 static CallbackStack* s_ephemeronStack; 316 static CallbackStack* s_ephemeronStack;
317 static HeapDoesNotContainCache* s_heapDoesNotContainCache; 317 static HeapDoesNotContainCache* s_heapDoesNotContainCache;
318 static FreePagePool* s_freePagePool; 318 static FreePagePool* s_freePagePool;
319 static OrphanedPagePool* s_orphanedPagePool; 319 static OrphanedPagePool* s_orphanedPagePool;
320 static RegionTree* s_regionTree;
321 static size_t s_allocatedSpace; 320 static size_t s_allocatedSpace;
322 static size_t s_allocatedObjectSize; 321 static size_t s_allocatedObjectSize;
323 static size_t s_objectSizeAtLastGC; 322 static size_t s_objectSizeAtLastGC;
324 static size_t s_markedObjectSize; 323 static size_t s_markedObjectSize;
325 static size_t s_markedObjectSizeAtLastCompleteSweep; 324 static size_t s_markedObjectSizeAtLastCompleteSweep;
326 static size_t s_wrapperCount; 325 static size_t s_wrapperCount;
327 static size_t s_wrapperCountAtLastGC; 326 static size_t s_wrapperCountAtLastGC;
328 static size_t s_collectedWrapperCount; 327 static size_t s_collectedWrapperCount;
329 static size_t s_partitionAllocSizeAtLastGC; 328 static size_t s_partitionAllocSizeAtLastGC;
330 static double s_estimatedMarkingTimePerByte; 329 static double s_estimatedMarkingTimePerByte;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 void VisitorHelper<Derived>::handleWeakCell(Visitor* self, void* object) 531 void VisitorHelper<Derived>::handleWeakCell(Visitor* self, void* object)
533 { 532 {
534 T** cell = reinterpret_cast<T**>(object); 533 T** cell = reinterpret_cast<T**>(object);
535 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell)) 534 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell))
536 *cell = nullptr; 535 *cell = nullptr;
537 } 536 }
538 537
539 } // namespace blink 538 } // namespace blink
540 539
541 #endif // Heap_h 540 #endif // Heap_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698