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

Unified Diff: tests/language/src/OptimizationTest.dart

Issue 8996024: Fix a bug in intrinsified Array_setIndexed type check. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
Index: tests/language/src/OptimizationTest.dart
===================================================================
--- tests/language/src/OptimizationTest.dart (revision 2600)
+++ tests/language/src/OptimizationTest.dart (working copy)
@@ -15,6 +15,10 @@
return -a;
}
+doNeg2(a) {
+ return -a;
+}
+
doNot(a) {
return !a;
}
@@ -52,4 +56,10 @@
Expect.equals(-57, doBitNot(56));
Expect.equals(55, doBitNot(-56));
}
+
+ for (int i = 0; i < 2000; i++) {
+ Expect.equals(-2.2, doNeg2(2.2));
+ }
+ // Deoptimize.
+ Expect.equals(-5, doNeg2(5));
}
« runtime/vm/opt_code_generator_ia32.cc ('K') | « runtime/vm/opt_code_generator_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698