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

Side by Side Diff: src/zone/accounting-allocator.h

Issue 2807353002: Add nogncheck to gtest/gtest_prod.h includes. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « src/libplatform/task-queue.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_ZONE_ACCOUNTING_ALLOCATOR_H_ 5 #ifndef V8_ZONE_ACCOUNTING_ALLOCATOR_H_
6 #define V8_ZONE_ACCOUNTING_ALLOCATOR_H_ 6 #define V8_ZONE_ACCOUNTING_ALLOCATOR_H_
7 7
8 #include "include/v8-platform.h" 8 #include "include/v8-platform.h"
9 #include "src/base/atomic-utils.h" 9 #include "src/base/atomic-utils.h"
10 #include "src/base/atomicops.h" 10 #include "src/base/atomicops.h"
11 #include "src/base/macros.h" 11 #include "src/base/macros.h"
12 #include "src/base/platform/mutex.h" 12 #include "src/base/platform/mutex.h"
13 #include "src/base/platform/semaphore.h" 13 #include "src/base/platform/semaphore.h"
14 #include "src/base/platform/time.h" 14 #include "src/base/platform/time.h"
15 #include "src/zone/zone-segment.h" 15 #include "src/zone/zone-segment.h"
16 #include "testing/gtest/include/gtest/gtest_prod.h" 16 #include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck
17 17
18 namespace v8 { 18 namespace v8 {
19 namespace internal { 19 namespace internal {
20 20
21 class V8_EXPORT_PRIVATE AccountingAllocator { 21 class V8_EXPORT_PRIVATE AccountingAllocator {
22 public: 22 public:
23 static const size_t kMaxPoolSizeLowMemoryDevice = 8ul * KB; 23 static const size_t kMaxPoolSizeLowMemoryDevice = 8ul * KB;
24 static const size_t kMaxPoolSizeMediumMemoryDevice = 8ul * KB; 24 static const size_t kMaxPoolSizeMediumMemoryDevice = 8ul * KB;
25 static const size_t kMaxPoolSizeHighMemoryDevice = 8ul * KB; 25 static const size_t kMaxPoolSizeHighMemoryDevice = 8ul * KB;
26 static const size_t kMaxPoolSizeHugeMemoryDevice = 8ul * KB; 26 static const size_t kMaxPoolSizeHugeMemoryDevice = 8ul * KB;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 base::AtomicValue<MemoryPressureLevel> memory_pressure_level_; 86 base::AtomicValue<MemoryPressureLevel> memory_pressure_level_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(AccountingAllocator); 88 DISALLOW_COPY_AND_ASSIGN(AccountingAllocator);
89 }; 89 };
90 90
91 } // namespace internal 91 } // namespace internal
92 } // namespace v8 92 } // namespace v8
93 93
94 #endif // V8_ZONE_ACCOUNTING_ALLOCATOR_H_ 94 #endif // V8_ZONE_ACCOUNTING_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/libplatform/task-queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698