| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // VMOptions= | 5 // VMOptions= |
| 6 // VMOptions=--use_internal_hash_map | 6 // VMOptions=--use_internal_hash_map |
| 7 | 7 |
| 8 // Tests of hash map behavior, with focus in iteration and concurrent | 8 // Tests of hash map behavior, with focus in iteration and concurrent |
| 9 // modification errors. | 9 // modification errors. |
| 10 | 10 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 testMap(() => new HashMap(), (m) => new HashMap.from(m)); | 302 testMap(() => new HashMap(), (m) => new HashMap.from(m)); |
| 303 testMap(() => new LinkedHashMap(), (m) => new LinkedHashMap.from(m)); | 303 testMap(() => new LinkedHashMap(), (m) => new LinkedHashMap.from(m)); |
| 304 } | 304 } |
| 305 | 305 |
| 306 class BadHashCode { | 306 class BadHashCode { |
| 307 static int idCounter = 0; | 307 static int idCounter = 0; |
| 308 final int id; | 308 final int id; |
| 309 BadHashCode() : id = idCounter++; | 309 BadHashCode() : id = idCounter++; |
| 310 int get hashCode => 42; | 310 int get hashCode => 42; |
| 311 } | 311 } |
| OLD | NEW |