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

Unified Diff: test/mjsunit/regress/regress-undefined-nan.js

Issue 863153002: Double field values need sNaN -> qNaN canonicalization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/hydrogen-instructions.cc ('k') | test/mjsunit/regress/regress-undefined-nan3.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-undefined-nan.js
diff --git a/test/mjsunit/regress/regress-undefined-nan.js b/test/mjsunit/regress/regress-undefined-nan.js
index cbbb182eeeef31aca7ff5da10a9ce6a15bf3fbd4..93106c5eb17522afef4eae47a4d1f6677dcc8e1f 100644
--- a/test/mjsunit/regress/regress-undefined-nan.js
+++ b/test/mjsunit/regress/regress-undefined-nan.js
@@ -15,7 +15,17 @@ i_view[1] = 0xFFF7FFFF;
var f_view = new Float64Array(ab);
var fixed_double_elements = new Float64Array(1);
-fixed_double_elements[0] = f_view[0];
+
+function opt_store() { fixed_double_elements[0] = f_view[0]; }
+
+opt_store();
+opt_store();
+%OptimizeFunctionOnNextCall(opt_store);
+opt_store();
+
+var i32 = new Int32Array(fixed_double_elements.buffer);
+assertEquals(i_view[0], i32[0]);
+assertEquals(i_view[1], i32[1]);
var doubles = [0.5];
loader(doubles, fixed_double_elements, 0);
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | test/mjsunit/regress/regress-undefined-nan3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698