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_ZONE_H_ | 5 #ifndef V8_ZONE_ZONE_H_ |
6 #define V8_ZONE_ZONE_H_ | 6 #define V8_ZONE_ZONE_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "src/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // freed by the Zone. | 225 // freed by the Zone. |
226 SplayTree<Config, ZoneAllocationPolicy>::ResetRoot(); | 226 SplayTree<Config, ZoneAllocationPolicy>::ResetRoot(); |
227 } | 227 } |
228 | 228 |
229 void* operator new(size_t size, Zone* zone) { return zone->New(size); } | 229 void* operator new(size_t size, Zone* zone) { return zone->New(size); } |
230 | 230 |
231 void operator delete(void* pointer) { UNREACHABLE(); } | 231 void operator delete(void* pointer) { UNREACHABLE(); } |
232 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } | 232 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } |
233 }; | 233 }; |
234 | 234 |
235 typedef base::TemplateHashMapImpl<void*, void*, ZoneAllocationPolicy> | 235 typedef base::PointerTemplateHashMapImpl<ZoneAllocationPolicy> ZoneHashMap; |
236 ZoneHashMap; | |
237 | 236 |
238 } // namespace internal | 237 } // namespace internal |
239 } // namespace v8 | 238 } // namespace v8 |
240 | 239 |
241 #endif // V8_ZONE_ZONE_H_ | 240 #endif // V8_ZONE_ZONE_H_ |
OLD | NEW |