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

Issue 411263004: Implement trigonometric functions using a fdlibm port. (Closed)

Created:
6 years, 5 months ago by Yang
Modified:
6 years, 4 months ago
CC:
Dmitry Lomov (no reviews), Raymond Toy, v8-dev
Project:
v8
Visibility:
Public.

Description

Implement trigonometric functions using a fdlibm port. R=jochen@chromium.org, rtoy@chromium.org, svenpanne@chromium.org BUG=v8:3006 LOG=N Committed: https://code.google.com/p/v8/source/detail?r=22918

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed comment #

Total comments: 59

Patch Set 3 : addressed comments #

Patch Set 4 : moved to third_party #

Patch Set 5 : Added README.v8 #

Total comments: 42

Patch Set 6 : addressed comments #

Total comments: 2

Patch Set 7 : add license file #

Patch Set 8 : fixed comment #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+834 lines, -314 lines) Patch
M .gitignore View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -35 lines 0 comments Download
M src/math.js View 1 2 3 17 chunks +4 lines, -107 lines 0 comments Download
M src/runtime.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -0 lines 0 comments Download
D src/trig-table.h View 1 chunk +0 lines, -38 lines 0 comments Download
M test/mjsunit/debug-script.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/mirror-script.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + test/mjsunit/runtime-gen/rempio2.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/sin-cos.js View 1 2 3 4 5 6 7 2 chunks +95 lines, -2 lines 0 comments Download
M test/test262/test262.status View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
A third_party/fdlibm/LICENSE View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/fdlibm/README.v8 View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/fdlibm/fdlibm.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/fdlibm/fdlibm.cc View 1 2 3 4 5 6 7 8 1 chunk +258 lines, -0 lines 0 comments Download
A third_party/fdlibm/fdlibm.js View 1 2 3 4 5 6 7 8 1 chunk +356 lines, -0 lines 0 comments Download
M tools/generate-runtime-tests.py View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
D tools/generate-trig-table.py View 1 chunk +0 lines, -83 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 8 8 chunks +5 lines, -35 lines 0 comments Download
M tools/js2c.py View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Yang
6 years, 5 months ago (2014-07-24 08:56:28 UTC) #1
Sven Panne
https://codereview.chromium.org/411263004/diff/1/src/rempio2.h File src/rempio2.h (right): https://codereview.chromium.org/411263004/diff/1/src/rempio2.h#newcode27 src/rempio2.h:27: static void* constants() { return const_cast<double*>(constants_); } Casting away ...
6 years, 5 months ago (2014-07-24 10:44:21 UTC) #2
Yang
https://codereview.chromium.org/411263004/diff/1/src/rempio2.h File src/rempio2.h (right): https://codereview.chromium.org/411263004/diff/1/src/rempio2.h#newcode27 src/rempio2.h:27: static void* constants() { return const_cast<double*>(constants_); } On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 11:00:34 UTC) #3
Sven Panne
LGTM (the math part is basically rubber-stamped)
6 years, 5 months ago (2014-07-24 11:49:44 UTC) #4
Raymond Toy
I'm not a reviewer, but I'm making some comments anyway. I think the code is ...
6 years, 5 months ago (2014-07-24 16:51:12 UTC) #5
Raymond Toy
https://codereview.chromium.org/411263004/diff/20001/src/math.js File src/math.js (right): https://codereview.chromium.org/411263004/diff/20001/src/math.js#newcode188 src/math.js:188: macro REMPIO2(X) Does this have to be a macro? ...
6 years, 5 months ago (2014-07-24 18:08:44 UTC) #6
Raymond Toy
A question on how sin(Infinity) or sin(Nan) is handled. It seems that for these values, ...
6 years, 5 months ago (2014-07-24 18:13:18 UTC) #7
Raymond Toy
https://codereview.chromium.org/411263004/diff/20001/test/mjsunit/sin-cos.js File test/mjsunit/sin-cos.js (right): https://codereview.chromium.org/411263004/diff/20001/test/mjsunit/sin-cos.js#newcode194 test/mjsunit/sin-cos.js:194: // Tests for Math.sin for |x| < pi/4 The ...
6 years, 5 months ago (2014-07-24 22:41:50 UTC) #8
Yang
https://codereview.chromium.org/411263004/diff/20001/src/math.js File src/math.js (right): https://codereview.chromium.org/411263004/diff/20001/src/math.js#newcode188 src/math.js:188: macro REMPIO2(X) On 2014/07/24 18:08:44, Raymond Toy wrote: > ...
6 years, 4 months ago (2014-07-28 11:29:00 UTC) #9
Yang
On 2014/07/28 11:29:00, Yang wrote: > https://codereview.chromium.org/411263004/diff/20001/src/math.js > File src/math.js (right): > > https://codereview.chromium.org/411263004/diff/20001/src/math.js#newcode188 > ...
6 years, 4 months ago (2014-07-28 12:22:19 UTC) #10
Raymond Toy
https://codereview.chromium.org/411263004/diff/20001/src/math.js File src/math.js (right): https://codereview.chromium.org/411263004/diff/20001/src/math.js#newcode188 src/math.js:188: macro REMPIO2(X) On 2014/07/28 11:28:59, Yang wrote: > On ...
6 years, 4 months ago (2014-07-30 19:55:05 UTC) #11
Yang
https://codereview.chromium.org/411263004/diff/20001/src/math.js File src/math.js (right): https://codereview.chromium.org/411263004/diff/20001/src/math.js#newcode196 src/math.js:196: var z = X - kTrig[1]; On 2014/07/30 19:55:04, ...
6 years, 4 months ago (2014-08-01 07:29:57 UTC) #12
Raymond Toy
https://codereview.chromium.org/411263004/diff/20001/src/math.js File src/math.js (right): https://codereview.chromium.org/411263004/diff/20001/src/math.js#newcode231 src/math.js:231: if (ix - (%_DoubleHi(y0) & 0x7ff00000) > 0x1000000) { ...
6 years, 4 months ago (2014-08-01 14:06:01 UTC) #13
Raymond Toy
lgtm But I didn't review the most recent changes to js2c.js; you might need someone ...
6 years, 4 months ago (2014-08-01 14:08:00 UTC) #14
jochen (gone - plz use gerrit)
https://codereview.chromium.org/411263004/diff/100001/third_party/fdlibm/README.v8 File third_party/fdlibm/README.v8 (right): https://codereview.chromium.org/411263004/diff/100001/third_party/fdlibm/README.v8#newcode6 third_party/fdlibm/README.v8:6: License File: LICENSE. this file is missing?
6 years, 4 months ago (2014-08-04 07:09:41 UTC) #15
Yang
On 2014/08/04 07:09:41, jochen wrote: > https://codereview.chromium.org/411263004/diff/100001/third_party/fdlibm/README.v8 > File third_party/fdlibm/README.v8 (right): > > https://codereview.chromium.org/411263004/diff/100001/third_party/fdlibm/README.v8#newcode6 > ...
6 years, 4 months ago (2014-08-04 07:11:30 UTC) #16
jochen (gone - plz use gerrit)
license and readme lgtm
6 years, 4 months ago (2014-08-04 07:52:12 UTC) #17
Yang
6 years, 4 months ago (2014-08-06 10:33:36 UTC) #18
Message was sent while issue was closed.
Committed patchset #9 manually as 22918 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698