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

Side by Side Diff: tests/standalone/src/ByteArrayTest.dart

Issue 9383004: Intrinsify InternalByteArray's get_length and []. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 | « runtime/vm/intrinsifier_ia32.cc ('k') | no next file » | 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 // 4 //
5 // Dart test program for testing native byte arrays. 5 // Dart test program for testing native byte arrays.
6 6
7 void testCreateByteArray() { 7 void testCreateByteArray() {
8 ByteArray byteArray; 8 ByteArray byteArray;
9 9
10 byteArray = new ByteArray(0); 10 byteArray = new ByteArray(0);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 Expect.throws(() { 47 Expect.throws(() {
48 byteArray.setRange(0, 4, list); 48 byteArray.setRange(0, 4, list);
49 }); 49 });
50 50
51 Expect.throws(() { 51 Expect.throws(() {
52 byteArray.setRange(3, 1, list); 52 byteArray.setRange(3, 1, list);
53 }); 53 });
54 } 54 }
55 55
56 main() { 56 main() {
57 testCreateByteArray(); 57 for (int i = 0; i < 2000; i++) {
58 testSetRange(); 58 testCreateByteArray();
59 testIndexOutOfRange(); 59 testSetRange();
60 testIndexOutOfRange();
61 }
60 } 62 }
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698