Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/zone/zone.h

Issue 2354593002: [base] Template MatchFun in TemplateHashMapImpl (Closed)
Patch Set: Remove bad search-replace Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/startup-serializer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/snapshot/startup-serializer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698