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

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

Issue 8972002: Use deopt on some instructions that have not collected type feedback when optimizing compierl kic... (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
« no previous file with comments | « runtime/vm/opt_code_generator_ia32.cc ('k') | tests/language/src/DeoptNoFeedbackTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/BitOperationsTest.dart
===================================================================
--- tests/language/src/BitOperationsTest.dart (revision 2484)
+++ tests/language/src/BitOperationsTest.dart (working copy)
@@ -5,6 +5,11 @@
class BitOperationsTest {
static testMain() {
+ for (int i = 0; i < 4; i++) {
+ testOne();
+ }
+ }
+ static testOne() {
Expect.equals(3, (3 & 7));
Expect.equals(7, (3 | 7));
Expect.equals(4, (3 ^ 7));
@@ -14,6 +19,8 @@
Expect.equals(-101, ~100);
Expect.equals(0x10000000000000000, 1 << 64);
Expect.equals(-0x10000000000000000, -1 << 64);
+ Expect.equals(0x40000000, 0x04000000 << 4);
+ Expect.equals(0x4000000000000000, 0x0400000000000000 << 4);
Expect.equals(0, ~-1);
Expect.equals(-1, ~0);
« no previous file with comments | « runtime/vm/opt_code_generator_ia32.cc ('k') | tests/language/src/DeoptNoFeedbackTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698