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

Side by Side Diff: runtime/vm/growable_array.h

Issue 2450713004: Make header include guards great again (Closed)
Patch Set: Fix header include guards Created 4 years, 1 month 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 | « runtime/vm/globals.h ('k') | runtime/vm/handles.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Defines growable array classes, that differ where they are allocated: 4 // Defines growable array classes, that differ where they are allocated:
5 // - GrowableArray: allocated on stack. 5 // - GrowableArray: allocated on stack.
6 // - ZoneGrowableArray: allocated in the zone. 6 // - ZoneGrowableArray: allocated in the zone.
7 // - MallocGrowableArray: allocates using malloc/realloc; free is only called 7 // - MallocGrowableArray: allocates using malloc/realloc; free is only called
8 // at destruction. 8 // at destruction.
9 9
10 #ifndef VM_GROWABLE_ARRAY_H_ 10 #ifndef RUNTIME_VM_GROWABLE_ARRAY_H_
11 #define VM_GROWABLE_ARRAY_H_ 11 #define RUNTIME_VM_GROWABLE_ARRAY_H_
12 12
13 #include "platform/utils.h" 13 #include "platform/utils.h"
14 #include "vm/allocation.h" 14 #include "vm/allocation.h"
15 #include "vm/isolate.h" 15 #include "vm/isolate.h"
16 #include "vm/zone.h" 16 #include "vm/zone.h"
17 17
18 namespace dart { 18 namespace dart {
19 19
20 template<typename T, typename B, typename Allocator = Zone> 20 template<typename T, typename B, typename Allocator = Zone>
21 class BaseGrowableArray : public B { 21 class BaseGrowableArray : public B {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 class MallocGrowableArray : public BaseGrowableArray<T, EmptyBase, Malloc> { 287 class MallocGrowableArray : public BaseGrowableArray<T, EmptyBase, Malloc> {
288 public: 288 public:
289 explicit MallocGrowableArray(intptr_t initial_capacity) 289 explicit MallocGrowableArray(intptr_t initial_capacity)
290 : BaseGrowableArray<T, EmptyBase, Malloc>(initial_capacity, NULL) {} 290 : BaseGrowableArray<T, EmptyBase, Malloc>(initial_capacity, NULL) {}
291 MallocGrowableArray() 291 MallocGrowableArray()
292 : BaseGrowableArray<T, EmptyBase, Malloc>(NULL) {} 292 : BaseGrowableArray<T, EmptyBase, Malloc>(NULL) {}
293 }; 293 };
294 294
295 } // namespace dart 295 } // namespace dart
296 296
297 #endif // VM_GROWABLE_ARRAY_H_ 297 #endif // RUNTIME_VM_GROWABLE_ARRAY_H_
OLDNEW
« no previous file with comments | « runtime/vm/globals.h ('k') | runtime/vm/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698