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

Unified Diff: tests/standalone/src/DeoptimizationTest.dart

Issue 9297026: Use inlined double temporary object for unary operation, add tests. Fix disassembler crash. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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/opt_code_generator_ia32.cc ('k') | tests/standalone/src/DoubleTempTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/DeoptimizationTest.dart
===================================================================
--- tests/standalone/src/DeoptimizationTest.dart (revision 3659)
+++ tests/standalone/src/DeoptimizationTest.dart (working copy)
@@ -182,6 +182,17 @@
Expect.equals(1 << 3, ShiftRight(mint, 60));
}
+ static doubleUnary() {
+ num unary(num a) { return -a; }
+
+ for (int i = 0; i < 2000; i++) {
+ var r = unary(2.0);
+ Expect.equals(-2.0, r);
+ }
+ var r = unary(5);
+ Expect.equals(-5, r);
+ }
+
static void testMain() {
test1();
test2();
@@ -192,6 +203,7 @@
SmiBinop.smiBinopOverflowTest();
ObjectsEquality.objectsEqualityTest();
smiRightShift();
+ doubleUnary();
}
}
« no previous file with comments | « runtime/vm/opt_code_generator_ia32.cc ('k') | tests/standalone/src/DoubleTempTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698