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

Issue 1579613002: [builtins] Refactor the remaining Date builtins. (Closed)

Created:
4 years, 11 months ago by Benedikt Meurer
Modified:
4 years, 11 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] Refactor the remaining Date builtins. This migrates the remaining Date builtins to C++ and removes obsolete intrinsics and JavaScript wrappers. This reduces the overhead imposed by the Date builtins, and will allow us to optimize them later in the TurboFan compiler, while the interpreter doesn't need to worry about them. R=yangguo@chromium.org BUG=chromium:576574 LOG=n Committed: https://crrev.com/1e51af1a5c80b1650de47dd4bc8f846fa2d85281 Cr-Commit-Position: refs/heads/master@{#33228} Committed: https://crrev.com/9e217ee4900a6b598967039e936af12dc3c4d06b Cr-Commit-Position: refs/heads/master@{#33231}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. Fixes. #

Patch Set 3 : As per offline discussion, remove the weird test, which does not add a lot of value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+723 lines, -1781 lines) Patch
M BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/bootstrapper.cc View 1 3 chunks +122 lines, -78 lines 0 comments Download
M src/builtins.h View 1 chunk +21 lines, -0 lines 0 comments Download
M src/builtins.cc View 4 chunks +544 lines, -14 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 4 chunks +0 lines, -40 lines 0 comments Download
M src/compiler/linkage.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/typer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/crankshaft/arm/lithium-arm.h View 2 chunks +0 lines, -20 lines 0 comments Download
M src/crankshaft/arm/lithium-arm.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/crankshaft/arm/lithium-codegen-arm.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M src/crankshaft/arm64/lithium-arm64.h View 2 chunks +0 lines, -18 lines 0 comments Download
M src/crankshaft/arm64/lithium-arm64.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M src/crankshaft/arm64/lithium-codegen-arm64.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M src/crankshaft/hydrogen.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M src/crankshaft/hydrogen-instructions.h View 2 chunks +0 lines, -23 lines 0 comments Download
M src/crankshaft/hydrogen-instructions.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/crankshaft/ia32/lithium-codegen-ia32.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M src/crankshaft/ia32/lithium-ia32.h View 2 chunks +0 lines, -22 lines 0 comments Download
M src/crankshaft/ia32/lithium-ia32.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/crankshaft/mips/lithium-codegen-mips.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M src/crankshaft/mips/lithium-mips.h View 2 chunks +0 lines, -20 lines 0 comments Download
M src/crankshaft/mips/lithium-mips.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/crankshaft/mips64/lithium-codegen-mips64.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M src/crankshaft/mips64/lithium-mips64.h View 2 chunks +0 lines, -20 lines 0 comments Download
M src/crankshaft/mips64/lithium-mips64.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/crankshaft/ppc/lithium-codegen-ppc.cc View 1 chunk +0 lines, -35 lines 0 comments Download
M src/crankshaft/ppc/lithium-ppc.h View 2 chunks +0 lines, -20 lines 0 comments Download
M src/crankshaft/ppc/lithium-ppc.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/crankshaft/x64/lithium-codegen-x64.cc View 1 chunk +0 lines, -38 lines 0 comments Download
M src/crankshaft/x64/lithium-x64.h View 2 chunks +0 lines, -18 lines 0 comments Download
M src/crankshaft/x64/lithium-x64.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M src/crankshaft/x87/lithium-codegen-x87.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M src/crankshaft/x87/lithium-x87.h View 2 chunks +0 lines, -22 lines 0 comments Download
M src/crankshaft/x87/lithium-x87.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M src/full-codegen/full-codegen.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 chunk +0 lines, -41 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 chunk +0 lines, -43 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M src/js/date.js View 1 1 chunk +0 lines, -547 lines 0 comments Download
M src/js/json.js View 1 2 chunks +19 lines, -0 lines 0 comments Download
M src/js/macros.py View 1 2 chunks +0 lines, -64 lines 0 comments Download
M src/objects.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M src/runtime/runtime-date.cc View 3 chunks +1 line, -95 lines 0 comments Download
M test/cctest/test-date.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M test/mjsunit/date.js View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M test/mjsunit/debug-script.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/messages.js View 2 chunks +1 line, -6 lines 0 comments Download
D test/mjsunit/regress/regress-1945.js View 1 chunk +0 lines, -34 lines 0 comments Download
M tools/gyp/v8.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 31 (17 generated)
Benedikt Meurer
4 years, 11 months ago (2016-01-11 14:39:05 UTC) #1
Benedikt Meurer
Hey Yang, Final refactoring for Date. :-) Please take a look. Thanks, Benedikt
4 years, 11 months ago (2016-01-11 14:40:23 UTC) #2
Yang
LGTM with comments, all of which can be either dismissed or done in a separate ...
4 years, 11 months ago (2016-01-12 06:20:57 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1579613002/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1579613002/diff/1/src/builtins.cc#newcode2125 src/builtins.cc:2125: enum ToDateStringMode { kDateOnly, kTimeOnly, kDateAndTime }; Definitely. https://codereview.chromium.org/1579613002/diff/1/src/builtins.cc#newcode2384 ...
4 years, 11 months ago (2016-01-12 06:26:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579613002/20001
4 years, 11 months ago (2016-01-12 06:27:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579613002/20001
4 years, 11 months ago (2016-01-12 07:58:37 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/164569)
4 years, 11 months ago (2016-01-12 08:14:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579613002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579613002/20001
4 years, 11 months ago (2016-01-12 09:09:53 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-12 09:12:08 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1e51af1a5c80b1650de47dd4bc8f846fa2d85281 Cr-Commit-Position: refs/heads/master@{#33228}
4 years, 11 months ago (2016-01-12 09:13:05 UTC) #22
Michael Achenbach
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1574223002/ by machenbach@chromium.org. ...
4 years, 11 months ago (2016-01-12 10:13:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579613002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579613002/40001
4 years, 11 months ago (2016-01-12 10:27:32 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-12 10:47:33 UTC) #29
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 10:48:35 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9e217ee4900a6b598967039e936af12dc3c4d06b
Cr-Commit-Position: refs/heads/master@{#33231}

Powered by Google App Engine
This is Rietveld 408576698