OLD | NEW |
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=--deoptimization_counter_threshold=1000 | 4 // VMOptions=--deoptimization_counter_threshold=1000 |
5 | 5 |
6 // Library tag to be able to run in html test framework. | 6 // Library tag to be able to run in html test framework. |
7 library float32x4_unbox_regress_test; | 7 library float32x4_unbox_regress_test; |
8 | 8 |
9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
10 import 'dart:typeddata'; | 10 import 'dart:typed_data'; |
11 | 11 |
12 testListStore(array, index, value) { | 12 testListStore(array, index, value) { |
13 array[index] = value; | 13 array[index] = value; |
14 } | 14 } |
15 | 15 |
16 void testListStoreDeopt() { | 16 void testListStoreDeopt() { |
17 var list; | 17 var list; |
18 var value = new Float32x4(1.0, 2.0, 3.0, 4.0); | 18 var value = new Float32x4(1.0, 2.0, 3.0, 4.0); |
19 var smi = 12; | 19 var smi = 12; |
20 list = new Float32x4List(8); | 20 list = new Float32x4List(8); |
(...skipping 26 matching lines...) Expand all Loading... |
47 | 47 |
48 try { | 48 try { |
49 testAdd(a, smi); | 49 testAdd(a, smi); |
50 } catch (_) {} | 50 } catch (_) {} |
51 } | 51 } |
52 | 52 |
53 main() { | 53 main() { |
54 testListStoreDeopt(); | 54 testListStoreDeopt(); |
55 testAddDeopt(); | 55 testAddDeopt(); |
56 } | 56 } |
OLD | NEW |