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

Side by Side Diff: runtime/vm/hash_map.h

Issue 1275653002: Tree-shaking: use a hash set for tracking live selectors, drop uncompiled functions. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | runtime/vm/precompiler.h » ('j') | runtime/vm/precompiler.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_HASH_MAP_H_ 5 #ifndef VM_HASH_MAP_H_
6 #define VM_HASH_MAP_H_ 6 #define VM_HASH_MAP_H_
7 7
8 #include "vm/zone.h"
9
8 namespace dart { 10 namespace dart {
9 11
10 template <typename KeyValueTrait> 12 template <typename KeyValueTrait>
11 class DirectChainedHashMap: public ValueObject { 13 class DirectChainedHashMap: public ValueObject {
12 public: 14 public:
13 DirectChainedHashMap() : array_size_(0), 15 DirectChainedHashMap() : array_size_(0),
14 lists_size_(0), 16 lists_size_(0),
15 count_(0), 17 count_(0),
16 array_(NULL), 18 array_(NULL),
17 lists_(NULL), 19 lists_(NULL),
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 243 }
242 244
243 static inline bool IsKeyEqual(Pair kv, Key key) { 245 static inline bool IsKeyEqual(Pair kv, Key key) {
244 return kv->Equals(key); 246 return kv->Equals(key);
245 } 247 }
246 }; 248 };
247 249
248 } // namespace dart 250 } // namespace dart
249 251
250 #endif // VM_HASH_MAP_H_ 252 #endif // VM_HASH_MAP_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/precompiler.h » ('j') | runtime/vm/precompiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698