| 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 // VMOptions=--optimization_counter_threshold=10 |
| 4 | 5 |
| 5 // Library tag to be able to run in html test framework. | 6 // Library tag to be able to run in html test framework. |
| 6 library byte_array_test; | 7 library byte_array_test; |
| 7 | 8 |
| 8 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 9 import 'dart:typed_data'; | 10 import 'dart:typed_data'; |
| 10 | 11 |
| 11 // This test exercises optimized [] and []= operators | 12 // This test exercises optimized [] and []= operators |
| 12 // on byte array views. | 13 // on byte array views. |
| 13 class OptimizedByteArrayTest { | 14 class OptimizedByteArrayTest { |
| (...skipping 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2122 testInt32ListView(); | 2123 testInt32ListView(); |
| 2123 testUint32ListView(); | 2124 testUint32ListView(); |
| 2124 testInt64ListView(); | 2125 testInt64ListView(); |
| 2125 testUint64ListView(); | 2126 testUint64ListView(); |
| 2126 testFloat32ListView(); | 2127 testFloat32ListView(); |
| 2127 testFloat64ListView(); | 2128 testFloat64ListView(); |
| 2128 } | 2129 } |
| 2129 } | 2130 } |
| 2130 | 2131 |
| 2131 main() { | 2132 main() { |
| 2132 for (var i=0; i<1000; i++) { | 2133 for (var i=0; i<20; i++) { |
| 2133 OptimizedByteArrayTest.testMain(); | 2134 OptimizedByteArrayTest.testMain(); |
| 2134 } | 2135 } |
| 2135 } | 2136 } |
| OLD | NEW |