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

Issue 113343003: Remove the last remnants of the TranscendentalCache. (Closed)

Created:
7 years ago by Sven Panne
Modified:
7 years ago
CC:
v8-dev
Visibility:
Public.

Description

Remove the last remnants of the TranscendentalCache. It was only used for Math.log, and even then only in full code and in %_MathLog. For crankshafted code, Intel already used the FP operations directly, while the ARM/MIPS ports were a bit lazy and simply called the stub. The latter directly call the C library now without any cache. It would be possible to directly generate machine code if somebody has the time, from what I've seen out in the wild it should be only about a dozen instructions. LOG=y R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18344

Patch Set 1 #

Total comments: 4

Patch Set 2 : ARM port. #

Patch Set 3 : MIPS port. #

Total comments: 4

Patch Set 4 : Rebased. Removed some dead ExternalReference stuff. #

Total comments: 2

Patch Set 5 : Removed mod_two_doubles. #

Total comments: 2

Patch Set 6 : Added MarkAsCall. #

Patch Set 7 : Changed MIPS registers back to previous values. #

Patch Set 8 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1444 lines) Patch
M src/arm/code-stubs-arm.h View 1 chunk +0 lines, -24 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 chunk +0 lines, -210 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/arm/lithium-arm.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 3 chunks +6 lines, -15 lines 0 comments Download
M src/assembler.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 4 chunks +4 lines, -75 lines 0 comments Download
M src/code-stubs.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/codegen.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/heap.h View 1 chunk +0 lines, -79 lines 0 comments Download
M src/heap.cc View 1 2 3 2 chunks +0 lines, -24 lines 0 comments Download
M src/heap-inl.h View 1 chunk +0 lines, -50 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M src/hydrogen-instructions.h View 3 chunks +1 line, -14 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 chunk +0 lines, -24 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +0 lines, -222 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 chunk +0 lines, -42 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 3 chunks +2 lines, -8 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M src/isolate.h View 2 chunks +0 lines, -5 lines 0 comments Download
M src/isolate.cc View 3 chunks +0 lines, -4 lines 0 comments Download
M src/mips/code-stubs-mips.h View 1 chunk +0 lines, -24 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 chunk +0 lines, -218 lines 0 comments Download
M src/mips/codegen-mips.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 3 3 chunks +6 lines, -15 lines 0 comments Download
M src/mips/lithium-mips.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/platform.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/platform-posix.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M src/platform-win32.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/serialize.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -25 lines 0 comments Download
M src/v8-counters.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/x64/code-stubs-x64.h View 1 chunk +0 lines, -25 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +0 lines, -214 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 chunk +0 lines, -41 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 2 chunks +1 line, -7 lines 0 comments Download
M src/x64/lithium-x64.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Sven Panne
LCodeGen::DoMathLog for ARM/MIPS still missing, will do at least the ARM part soon. Waiting for ...
7 years ago (2013-12-12 16:23:19 UTC) #1
Yang
Looking good. https://codereview.chromium.org/113343003/diff/1/src/arm/full-codegen-arm.cc File src/arm/full-codegen-arm.cc (right): https://codereview.chromium.org/113343003/diff/1/src/arm/full-codegen-arm.cc#newcode3705 src/arm/full-codegen-arm.cc:3705: __ CallRuntime(Runtime::kMath_log, 1); We could directly call ...
7 years ago (2013-12-13 13:35:38 UTC) #2
Sven Panne
Platform ports done, PTAL again. Adding our ARM/MIPS experts, please have a look that I ...
7 years ago (2013-12-13 13:55:10 UTC) #3
Sven Panne
https://codereview.chromium.org/113343003/diff/1/src/arm/full-codegen-arm.cc File src/arm/full-codegen-arm.cc (right): https://codereview.chromium.org/113343003/diff/1/src/arm/full-codegen-arm.cc#newcode3705 src/arm/full-codegen-arm.cc:3705: __ CallRuntime(Runtime::kMath_log, 1); On 2013/12/13 13:35:39, Yang wrote: > ...
7 years ago (2013-12-13 13:59:49 UTC) #4
Yang
LGTM if comments are addressed. https://codereview.chromium.org/113343003/diff/40001/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc (right): https://codereview.chromium.org/113343003/diff/40001/src/arm/lithium-codegen-arm.cc#newcode3939 src/arm/lithium-codegen-arm.cc:3939: __ CallCFunction(ExternalReference::math_log_double_function(isolate()), I just ...
7 years ago (2013-12-13 15:54:39 UTC) #5
Sven Panne
Feedback addressed, killing some dead ExternalReference stuff on the way. Waiting for the tree to ...
7 years ago (2013-12-16 08:20:22 UTC) #6
Yang
LGTM. One last remark. https://codereview.chromium.org/113343003/diff/50001/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/113343003/diff/50001/src/assembler.cc#newcode1524 src/assembler.cc:1524: FUNCTION_ADDR(mod_two_doubles), Redirect to modulo directly? ...
7 years ago (2013-12-16 08:41:25 UTC) #7
Sven Panne
Feedback addressed. Net result of this CL: -1400 lines by now. >:-) https://codereview.chromium.org/113343003/diff/50001/src/assembler.cc File src/assembler.cc ...
7 years ago (2013-12-16 09:52:34 UTC) #8
m.m.capewell
https://codereview.chromium.org/113343003/diff/70001/src/arm/lithium-arm.cc File src/arm/lithium-arm.cc (right): https://codereview.chromium.org/113343003/diff/70001/src/arm/lithium-arm.cc#newcode1228 src/arm/lithium-arm.cc:1228: return DefineAsRegister(new(zone()) LMathLog(input)); Should this be MarkAsCall()? I can't ...
7 years ago (2013-12-16 11:44:54 UTC) #9
Sven Panne
https://codereview.chromium.org/113343003/diff/70001/src/arm/lithium-arm.cc File src/arm/lithium-arm.cc (right): https://codereview.chromium.org/113343003/diff/70001/src/arm/lithium-arm.cc#newcode1228 src/arm/lithium-arm.cc:1228: return DefineAsRegister(new(zone()) LMathLog(input)); On 2013/12/16 11:44:54, m.m.capewell wrote: > ...
7 years ago (2013-12-16 13:30:28 UTC) #10
Sven Panne
Addressed feedback and made LChunkBuilder::DoMathLog more uniform across platforms.
7 years ago (2013-12-16 14:22:27 UTC) #11
m.m.capewell
On 2013/12/16 14:22:27, Sven Panne wrote: > Addressed feedback and made LChunkBuilder::DoMathLog more uniform across ...
7 years ago (2013-12-16 14:24:52 UTC) #12
Sven Panne
On 2013/12/16 14:24:52, m.m.capewell wrote: > On 2013/12/16 14:22:27, Sven Panne wrote: > > Addressed ...
7 years ago (2013-12-17 07:00:51 UTC) #13
Sven Panne
7 years ago (2013-12-18 10:40:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #8 manually as r18344 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698