OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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=--max_deoptimization_counter_threshold=1000 --optimization-counter-
threshold=10 --no-background-compilation | 4 // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-
threshold=10 --no-background-compilation |
| 5 // VMOptions=--no-intrinsify |
5 | 6 |
6 library int32x4_test; | 7 library int32x4_test; |
7 | 8 |
8 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
9 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
10 | 11 |
11 void testBadArguments() { | 12 void testBadArguments() { |
12 Expect.throws(() => new Int32x4(null, 2, 3, 4), (e) => e is ArgumentError); | 13 Expect.throws(() => new Int32x4(null, 2, 3, 4), (e) => e is ArgumentError); |
13 Expect.throws(() => new Int32x4(1, null, 3, 4), (e) => e is ArgumentError); | 14 Expect.throws(() => new Int32x4(1, null, 3, 4), (e) => e is ArgumentError); |
14 Expect.throws(() => new Int32x4(1, 2, null, 4), (e) => e is ArgumentError); | 15 Expect.throws(() => new Int32x4(1, 2, null, 4), (e) => e is ArgumentError); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 Expect.equals(expected, int32x4.w); | 76 Expect.equals(expected, int32x4.w); |
76 } | 77 } |
77 } | 78 } |
78 | 79 |
79 main() { | 80 main() { |
80 for (int i = 0; i < 20; i++) { | 81 for (int i = 0; i < 20; i++) { |
81 testBigArguments(); | 82 testBigArguments(); |
82 testBadArguments(); | 83 testBadArguments(); |
83 } | 84 } |
84 } | 85 } |
OLD | NEW |