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

Issue 6368050: Fix Math.pow(-0, 0.5) and Math.pow(-0, -0.5). These are not equal to sqrt(-0... (Closed)

Created:
9 years, 10 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Fix Math.pow(-0, 0.5) and Math.pow(-0, -0.5). These are not equal to sqrt(-0) and 1/sqrt(-0). Add tests for these cases. Fixes V8 issue 1088. BUG=1088 TEST=test/mjsunit/math-pow.js Committed: http://code.google.com/p/v8/source/detail?r=6573

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -32 lines) Patch
M src/arm/codegen-arm.cc View 1 2 chunks +8 lines, -2 lines 0 comments Download
M src/assembler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M test/mjsunit/math-pow.js View 1 4 chunks +29 lines, -16 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
9 years, 10 months ago (2011-02-02 11:31:20 UTC) #1
Rico
LGTM, I think this is also an issue on arm.
9 years, 10 months ago (2011-02-02 11:41:04 UTC) #2
Rico
9 years, 10 months ago (2011-02-02 12:54:11 UTC) #3
LGTM

Powered by Google App Engine
This is Rietveld 408576698