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

Unified Diff: src/runtime.js

Issue 9910029: MIPS: Fix NaN value inconsistency with snapshots (alternate implementation). (Closed)
Patch Set: Created 8 years, 9 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/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index 53d9a397310c9ff9cd9b29abf6b1dcd67234882f..e10185366628780541d55aac5fb989d8665cdcff 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -47,9 +47,15 @@ var $String = global.String;
var $Number = global.Number;
var $Function = global.Function;
var $Boolean = global.Boolean;
-var $NaN = 0/0;
+var $NaN = getCanonicalNan();
danno 2012/04/03 09:14:43 Why the extra wrapped function? Why not call %getC
Paul Lind 2012/04/04 05:02:47 Not needed, removed.
var builtins = this;
+
+function getCanonicalNan() {
+ return %GetRootNan();
+}
+
+
// ECMA-262 Section 11.9.3.
function EQUALS(y) {
if (IS_STRING(this) && IS_STRING(y)) return %StringEquals(this, y);
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698