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

Unified Diff: tests/language/positive_bit_operations_test.dart

Issue 10825386: Use JavaScript runtime semantics when constant folding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 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 | « tests/language/language_dart2js.status ('k') | tests/utils/utils.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/positive_bit_operations_test.dart
diff --git a/tests/language/positive_bit_operations_test.dart b/tests/language/positive_bit_operations_test.dart
index c314b957a9761107033acb8b6c52451bd0015c94..86af1a1586a4d76f9fe94a43619bd0e57f6e956d 100644
--- a/tests/language/positive_bit_operations_test.dart
+++ b/tests/language/positive_bit_operations_test.dart
@@ -18,8 +18,6 @@ constants() {
Expect.equals(0x80000000, 1 << 31);
Expect.equals(0xFFFFFFF0, 0xFFFFFFF << 4);
Expect.equals(0x7FFFFFFF, 0xFFFFFFFF >> 1);
- Expect.equals(0xFFFF0000, (-1 >> 16) & 0xFFFF0000);
- Expect.equals(0xFFFFFFFF, (-1 >> 33) & 0xFFFFFFFF);
Expect.equals(0xFFFFFFFC,
((((((0xFFFFFFF << 4) // 0xFFFFFFF0
>> 1) // 0x7FFFFFF8
@@ -62,8 +60,6 @@ interceptors() {
Expect.equals(0x80000000, id(1) << id(31));
Expect.equals(0xFFFFFFF0, id(0xFFFFFFF) << id(4));
Expect.equals(0x7FFFFFFF, id(0xFFFFFFFF) >> id(1));
- Expect.equals(0xFFFF0000, (id(-1) >> 16) & 0xFFFF0000);
- Expect.equals(0xFFFFFFFF, (id(-1) >> 33) & 0xFFFFFFFF);
Expect.equals(0xFFFFFFFC,
((((((id(0xFFFFFFF) << 4) // 0xFFFFFFF0
>> 1) // 0x7FFFFFF8
@@ -86,7 +82,6 @@ speculative() {
var k = id(31);
var l = id(4);
var m = id(0xFFFFFFF);
- var n = id(-1);
for (int i = 0; i < 1; i++) {
Expect.equals(0x80000000, a | b);
Expect.equals(0x80000001, a | c);
@@ -103,8 +98,6 @@ speculative() {
Expect.equals(0x80000000, c << k);
Expect.equals(0xFFFFFFF0, m << l);
Expect.equals(0x7FFFFFFF, f >> c);
- Expect.equals(0xFFFF0000, (n >> 16) & 0xFFFF0000);
- Expect.equals(0xFFFFFFFF, (n >> 33) & 0xFFFFFFFF);
Expect.equals(0xFFFFFFFC,
((((((m << 4) // 0xFFFFFFF0
>> 1) // 0x7FFFFFF8
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/utils/utils.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698