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

Unified Diff: tests/standalone/float_array_test.dart

Issue 24567003: Bug fix and cleanup of inlining of recognized [] methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: removed invalid ASSERT Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/float_array_test.dart
===================================================================
--- tests/standalone/float_array_test.dart (revision 27768)
+++ tests/standalone/float_array_test.dart (working copy)
@@ -4,6 +4,8 @@
//
// Dart test program for testing native float arrays.
+// VMOptions=--optimization_counter_threshold=10
+
// Library tag to be able to run in html test framework.
library FloatArrayTest;
@@ -186,23 +188,34 @@
a[index] = value;
}
+testPolymorphicLoad(var list) {
+ return list[0];
+}
+
main() {
var a32 = new Float32List(5);
- for (int i = 0; i < 2000; i++) {
+ for (int i = 0; i < 20; i++) {
testCreateFloat32Array();
testSetRange32();
testIndexOutOfRange32();
testIndexOf32();
storeIt32(a32, 1, 2.0);
+ testPolymorphicLoad(a32);
}
var a64 = new Float64List(5);
- for (int i = 0; i < 2000; i++) {
+ for (int i = 0; i < 20; i++) {
testCreateFloat64Array();
testSetRange64();
testIndexOutOfRange64();
testIndexOf64();
storeIt64(a64, 1, 2.0);
+ testPolymorphicLoad(a64);
}
+ var f32x4 = new Float32x4List(5);
+ for (int i = 0; i < 20; i++) {
+ testPolymorphicLoad(f32x4);
+ }
+
// These two take a long time in checked mode.
testBadValues32();
testBadValues64();
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698