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

Side by Side Diff: src/zone.h

Issue 2010243003: Move hashmap into base/. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 6 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/wasm/wasm-js.h ('k') | test/cctest/test-api.cc » ('j') | 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_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"
11 #include "src/base/hashmap.h"
11 #include "src/base/logging.h" 12 #include "src/base/logging.h"
12 #include "src/globals.h" 13 #include "src/globals.h"
13 #include "src/hashmap.h"
14 #include "src/list.h" 14 #include "src/list.h"
15 #include "src/splay-tree.h" 15 #include "src/splay-tree.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 // Forward declarations. 20 // Forward declarations.
21 class Segment; 21 class Segment;
22 22
23 23
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 247 typedef base::TemplateHashMapImpl<ZoneAllocationPolicy> ZoneHashMap;
248 typedef TemplateHashMapImpl<ZoneAllocationPolicy> 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_
OLDNEW
« no previous file with comments | « src/wasm/wasm-js.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698