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

Unified Diff: test/mjsunit/regress/regress-3380.js

Issue 325133004: Fix unsigned comparisons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Assert, don't print... Created 6 years, 6 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 | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-3380.js
diff --git a/test/mjsunit/regress/regress-349885.js b/test/mjsunit/regress/regress-3380.js
similarity index 62%
copy from test/mjsunit/regress/regress-349885.js
copy to test/mjsunit/regress/regress-3380.js
index dd3e79526041b0362434608b81429d83e18ae8ef..2fae459b3b46e768e4612359bcdc964350a9d5dd 100644
--- a/test/mjsunit/regress/regress-349885.js
+++ b/test/mjsunit/regress/regress-3380.js
@@ -4,12 +4,13 @@
// Flags: --allow-natives-syntax
-// The bug 349885
-
function foo(a) {
- a[292755462] = new Object();
+ return (a[0] >>> 0) > 0;
}
-foo(new Array(5));
-foo(new Array(5));
+
+var a = new Uint32Array([4]);
+var b = new Uint32Array([0x80000000]);
+assertTrue(foo(a));
+assertTrue(foo(a));
%OptimizeFunctionOnNextCall(foo);
-foo(new Array(10));
+assertTrue(foo(b))
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698