| 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 PLATFORM_HASHMAP_H_ | 5 #ifndef RUNTIME_PLATFORM_HASHMAP_H_ |
| 6 #define PLATFORM_HASHMAP_H_ | 6 #define RUNTIME_PLATFORM_HASHMAP_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 class HashMap { | 12 class HashMap { |
| 13 public: | 13 public: |
| 14 typedef bool (*MatchFun) (void* key1, void* key2); | 14 typedef bool (*MatchFun) (void* key1, void* key2); |
| 15 | 15 |
| 16 typedef void (*ClearFun) (void* value); | 16 typedef void (*ClearFun) (void* value); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Entry* Probe(void* key, uint32_t hash); | 98 Entry* Probe(void* key, uint32_t hash); |
| 99 void Initialize(uint32_t capacity); | 99 void Initialize(uint32_t capacity); |
| 100 void Resize(); | 100 void Resize(); |
| 101 | 101 |
| 102 friend class IntSet; // From hashmap_test.cc | 102 friend class IntSet; // From hashmap_test.cc |
| 103 DISALLOW_COPY_AND_ASSIGN(HashMap); | 103 DISALLOW_COPY_AND_ASSIGN(HashMap); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace dart | 106 } // namespace dart |
| 107 | 107 |
| 108 #endif // PLATFORM_HASHMAP_H_ | 108 #endif // RUNTIME_PLATFORM_HASHMAP_H_ |
| OLD | NEW |