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

Side by Side Diff: dart/tests/lib/typed_data/float32x4_unbox_regress_test.dart

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
OLDNEW
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 --optimization-counter-thre shold=10 4 // VMOptions=--deoptimization_counter_threshold=1000 --optimization-counter-thre shold=10
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:typed_data'; 10 import 'dart:typed_data';
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 testGet(12); 67 testGet(12);
68 } catch (_) { 68 } catch (_) {
69 } 69 }
70 70
71 for (int i = 0; i < 20; i++) { 71 for (int i = 0; i < 20; i++) {
72 testGet(a); 72 testGet(a);
73 } 73 }
74 } 74 }
75 75
76 void testComparison(a, b) { 76 void testComparison(a, b) {
77 Uint32x4 r = a.equal(b); 77 Int32x4 r = a.equal(b);
78 Expect.equals(true, r.flagX); 78 Expect.equals(true, r.flagX);
79 Expect.equals(false, r.flagY); 79 Expect.equals(false, r.flagY);
80 Expect.equals(false, r.flagZ); 80 Expect.equals(false, r.flagZ);
81 Expect.equals(true, r.flagW); 81 Expect.equals(true, r.flagW);
82 } 82 }
83 83
84 void testComparisonDeopt() { 84 void testComparisonDeopt() {
85 var a = new Float32x4(1.0, 2.0, 3.0, 4.0); 85 var a = new Float32x4(1.0, 2.0, 3.0, 4.0);
86 var b = new Float32x4(1.0, 2.1, 3.1, 4.0); 86 var b = new Float32x4(1.0, 2.1, 3.1, 4.0);
87 var smi = 12; 87 var smi = 12;
(...skipping 20 matching lines...) Expand all
108 testComparison(a, b); 108 testComparison(a, b);
109 } 109 }
110 } 110 }
111 111
112 main() { 112 main() {
113 testListStoreDeopt(); 113 testListStoreDeopt();
114 testAddDeopt(); 114 testAddDeopt();
115 testGetDeopt(); 115 testGetDeopt();
116 testComparisonDeopt(); 116 testComparisonDeopt();
117 } 117 }
OLDNEW
« no previous file with comments | « dart/tests/lib/typed_data/float32x4_test.dart ('k') | dart/tests/lib/typed_data/int32x4_arithmetic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698