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

Side by Side Diff: tests/corelib/hash_map2_test.dart

Issue 21363003: Enables per-function far-branches for ARM and MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
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 // VMOptions=--use-far-branches
5 4
6 // Tests of hash map behavior, with focus in iteration and concurrent 5 // Tests of hash map behavior, with focus in iteration and concurrent
7 // modification errors. 6 // modification errors.
8 7
9 library hash_map2_test; 8 library hash_map2_test;
10 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
11 import 'dart:collection'; 10 import 'dart:collection';
12 11
13 testMap(Map newMap(), Map newMapFrom(Map map)) { 12 testMap(Map newMap(), Map newMapFrom(Map map)) {
14 Map gen(int from, int to) { 13 Map gen(int from, int to) {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 testMap(() => new LinkedHashMap(), (m) => new LinkedHashMap.from(m)); 281 testMap(() => new LinkedHashMap(), (m) => new LinkedHashMap.from(m));
283 } 282 }
284 283
285 284
286 class BadHashCode { 285 class BadHashCode {
287 static int idCounter = 0; 286 static int idCounter = 0;
288 final int id; 287 final int id;
289 BadHashCode() : id = idCounter++; 288 BadHashCode() : id = idCounter++;
290 int get hashCode => 42; 289 int get hashCode => 42;
291 } 290 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698