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

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

Issue 1507483002: Simplify prefinalizer processing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final tidying Created 5 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 | third_party/WebKit/Source/platform/heap/ThreadState.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 /* 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 30 matching lines...) Expand all
41 #include "platform/heap/SafePoint.h" 41 #include "platform/heap/SafePoint.h"
42 #include "platform/heap/ThreadState.h" 42 #include "platform/heap/ThreadState.h"
43 #include "public/platform/Platform.h" 43 #include "public/platform/Platform.h"
44 #include "public/platform/WebMemoryAllocatorDump.h" 44 #include "public/platform/WebMemoryAllocatorDump.h"
45 #include "public/platform/WebProcessMemoryDump.h" 45 #include "public/platform/WebProcessMemoryDump.h"
46 #include "wtf/Assertions.h" 46 #include "wtf/Assertions.h"
47 #include "wtf/DataLog.h" 47 #include "wtf/DataLog.h"
48 #include "wtf/LeakAnnotations.h" 48 #include "wtf/LeakAnnotations.h"
49 #include "wtf/MainThread.h" 49 #include "wtf/MainThread.h"
50 #include "wtf/Partitions.h" 50 #include "wtf/Partitions.h"
51 #include "wtf/PassOwnPtr.h"
52 51
53 namespace blink { 52 namespace blink {
54 53
55 class GCForbiddenScope final { 54 class GCForbiddenScope final {
56 public: 55 public:
57 explicit GCForbiddenScope(ThreadState* state) 56 explicit GCForbiddenScope(ThreadState* state)
58 : m_state(state) 57 : m_state(state)
59 { 58 {
60 // Prevent nested collectGarbage() invocations. 59 // Prevent nested collectGarbage() invocations.
61 m_state->enterGCForbiddenScope(); 60 m_state->enterGCForbiddenScope();
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 size_t Heap::s_wrapperCount = 0; 769 size_t Heap::s_wrapperCount = 0;
771 size_t Heap::s_wrapperCountAtLastGC = 0; 770 size_t Heap::s_wrapperCountAtLastGC = 0;
772 size_t Heap::s_collectedWrapperCount = 0; 771 size_t Heap::s_collectedWrapperCount = 0;
773 size_t Heap::s_partitionAllocSizeAtLastGC = 0; 772 size_t Heap::s_partitionAllocSizeAtLastGC = 0;
774 double Heap::s_estimatedMarkingTimePerByte = 0.0; 773 double Heap::s_estimatedMarkingTimePerByte = 0.0;
775 #if ENABLE(ASSERT) 774 #if ENABLE(ASSERT)
776 uint16_t Heap::s_gcGeneration = 0; 775 uint16_t Heap::s_gcGeneration = 0;
777 #endif 776 #endif
778 777
779 } // namespace blink 778 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698