| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |