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

Unified Diff: test/mjsunit/pixel-array-rounding.js

Issue 13426006: Improvements for x87 stack handling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last comments Created 7 years, 8 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 | « test/mjsunit/external-array-no-sse2.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/pixel-array-rounding.js
diff --git a/test/mjsunit/pixel-array-rounding.js b/test/mjsunit/pixel-array-rounding.js
index 0c307e62e55297faefe3e2ae253e7a344f4ee6c6..b7db51c2c9d39a9b98d8158db004249529d9837a 100755
--- a/test/mjsunit/pixel-array-rounding.js
+++ b/test/mjsunit/pixel-array-rounding.js
@@ -27,12 +27,15 @@
// Flags: --allow-natives-syntax
-var pixels = new Uint8ClampedArray(8);
+var pixels = new Uint8ClampedArray(11);
function f() {
for (var i = 0; i < 8; i++) {
pixels[i] = (i * 1.1);
}
+ pixels[8] = 255.5;
+ pixels[9] = NaN;
+ pixels[10] = -0.5;
return pixels[1] + pixels[6];
}
@@ -42,3 +45,6 @@ assertEquals(6, pixels[5]);
%OptimizeFunctionOnNextCall(f);
f();
assertEquals(6, pixels[5]);
+assertEquals(255, pixels[8]);
+assertEquals(0, pixels[9]);
+assertEquals(0, pixels[10]);
« no previous file with comments | « test/mjsunit/external-array-no-sse2.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698