| 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 "zone.h" | 10 #include "src/zone.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 template<typename T> | 15 template<typename T> |
| 16 class zone_allocator { | 16 class zone_allocator { |
| 17 public: | 17 public: |
| 18 typedef T* pointer; | 18 typedef T* pointer; |
| 19 typedef const T* const_pointer; | 19 typedef const T* const_pointer; |
| 20 typedef T& reference; | 20 typedef T& reference; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 58 } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 zone_allocator(); | 61 zone_allocator(); |
| 62 Zone* zone_; | 62 Zone* zone_; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } } // namespace v8::internal | 65 } } // namespace v8::internal |
| 66 | 66 |
| 67 #endif // V8_ZONE_ALLOCATOR_H_ | 67 #endif // V8_ZONE_ALLOCATOR_H_ |
| OLD | NEW |