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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::PointerTemplateHashMapImpl<ZoneAllocationPolicy> ZoneHashMap; | 235 typedef base::PointerTemplateHashMapImpl<ZoneAllocationPolicy> ZoneHashMap; |
236 | 236 |
| 237 typedef base::CustomMatcherTemplateHashMapImpl<ZoneAllocationPolicy> |
| 238 CustomMatcherZoneHashMap; |
| 239 |
237 } // namespace internal | 240 } // namespace internal |
238 } // namespace v8 | 241 } // namespace v8 |
239 | 242 |
240 #endif // V8_ZONE_ZONE_H_ | 243 #endif // V8_ZONE_ZONE_H_ |
OLD | NEW |