OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_H_ | 5 #ifndef V8_ZONE_H_ |
6 #define V8_ZONE_H_ | 6 #define V8_ZONE_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "src/base/accounting-allocator.h" | 10 #include "src/base/accounting-allocator.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // freed by the Zone. | 237 // freed by the Zone. |
238 SplayTree<Config, ZoneAllocationPolicy>::ResetRoot(); | 238 SplayTree<Config, ZoneAllocationPolicy>::ResetRoot(); |
239 } | 239 } |
240 | 240 |
241 void* operator new(size_t size, Zone* zone) { return zone->New(size); } | 241 void* operator new(size_t size, Zone* zone) { return zone->New(size); } |
242 | 242 |
243 void operator delete(void* pointer) { UNREACHABLE(); } | 243 void operator delete(void* pointer) { UNREACHABLE(); } |
244 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } | 244 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } |
245 }; | 245 }; |
246 | 246 |
247 typedef base::TemplateHashMapImpl<void*, void*, ZoneAllocationPolicy> | 247 typedef base::PointerHashMap<ZoneAllocationPolicy> ZoneHashMap; |
248 ZoneHashMap; | |
249 | 248 |
250 } // namespace internal | 249 } // namespace internal |
251 } // namespace v8 | 250 } // namespace v8 |
252 | 251 |
253 #endif // V8_ZONE_H_ | 252 #endif // V8_ZONE_H_ |
OLD | NEW |