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

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

Issue 20369003: Implements far branch targets for MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
« no previous file with comments | « tests/corelib/hash_map2_test.dart ('k') | tests/language/arithmetic_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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
4 5
5 import "dart:collection"; 6 import "dart:collection";
6 import "dart:typed_data"; 7 import "dart:typed_data";
7 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
8 9
9 void main() { 10 void main() {
10 // Typed lists - fixed length and can only contain integers. 11 // Typed lists - fixed length and can only contain integers.
11 testTypedList(new Uint8List(4)); 12 testTypedList(new Uint8List(4));
12 testTypedList(new Int8List(4)); 13 testTypedList(new Int8List(4));
13 testTypedList(new Uint16List(4)); 14 testTypedList(new Uint16List(4));
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 } 486 }
486 487
487 class MyFixedList<E> extends ListBase<E> { 488 class MyFixedList<E> extends ListBase<E> {
488 List<E> _source; 489 List<E> _source;
489 MyFixedList(this._source); 490 MyFixedList(this._source);
490 int get length => _source.length; 491 int get length => _source.length;
491 void set length(int length) { throw new UnsupportedError("Fixed length!"); } 492 void set length(int length) { throw new UnsupportedError("Fixed length!"); }
492 E operator[](int index) => _source[index]; 493 E operator[](int index) => _source[index];
493 void operator[]=(int index, E value) { _source[index] = value; } 494 void operator[]=(int index, E value) { _source[index] = value; }
494 } 495 }
OLDNEW
« no previous file with comments | « tests/corelib/hash_map2_test.dart ('k') | tests/language/arithmetic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698