OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_ALLOCATOR_H_ | 5 #ifndef V8_ZONE_ALLOCATOR_H_ |
6 #define V8_ZONE_ALLOCATOR_H_ | 6 #define V8_ZONE_ALLOCATOR_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 Zone* zone() { return zone_; } | 60 Zone* zone() { return zone_; } |
61 | 61 |
62 private: | 62 private: |
63 zone_allocator(); | 63 zone_allocator(); |
64 Zone* zone_; | 64 Zone* zone_; |
65 }; | 65 }; |
66 | 66 |
67 typedef zone_allocator<bool> ZoneBoolAllocator; | 67 typedef zone_allocator<bool> ZoneBoolAllocator; |
68 typedef zone_allocator<int> ZoneIntAllocator; | 68 typedef zone_allocator<int> ZoneIntAllocator; |
69 } } // namespace v8::internal | 69 } // namespace internal |
| 70 } // namespace v8 |
70 | 71 |
71 #endif // V8_ZONE_ALLOCATOR_H_ | 72 #endif // V8_ZONE_ALLOCATOR_H_ |
OLD | NEW |