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

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

Issue 1507363002: MIPS: Fix NaN tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 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 | « src/runtime/runtime-numbers.cc ('k') | test/mjsunit/regress/regress-undefined-nan.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-2596.js
diff --git a/test/mjsunit/regress/regress-2596.js b/test/mjsunit/regress/regress-2596.js
index e7006085a1ab21f357e07621a103a68167e45975..a1a0af3b00b392120a957cc4d4fe293dafd96a63 100644
--- a/test/mjsunit/regress/regress-2596.js
+++ b/test/mjsunit/regress/regress-2596.js
@@ -27,9 +27,11 @@
// Flags: --allow-natives-syntax
-var bytes = new Uint8Array([
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f]); // kHoleNaN
-var doubles = new Float64Array(bytes.buffer);
+var ab = new ArrayBuffer(8);
+var i_view = new Int32Array(ab);
+i_view[0] = %GetHoleNaNUpper()
+i_view[1] = %GetHoleNaNLower();
+var doubles = new Float64Array(ab); // kHoleNaN
assertTrue(isNaN(doubles[0]));
var prototype = [2.5, 2.5];
« no previous file with comments | « src/runtime/runtime-numbers.cc ('k') | test/mjsunit/regress/regress-undefined-nan.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698