Reviewers: ulan,
Message:
PTAL. Fixes the windows check failures.
Description:
Fixing Math.pow(NaN, -0.0) == 1 on Windows.
Please review this at http://codereview.chromium.org/8804005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/runtime.cc
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index
3550d3bb0d72c3fe05f2c3c9504dc0da4174d885..29513dbdb5a72bfadaa7c1c62715baa424626ff8
100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -7414,6 +7414,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_pow) {
}
CONVERT_DOUBLE_ARG_CHECKED(y, 1);
+ if (y == 0) return Smi::FromInt(1);
return isolate->heap()->AllocateHeapNumber(power_double_double(x, y));
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev