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

Issue 1556333002: [runtime] Migrate several Date builtins to C++. (Closed)

Created:
4 years, 11 months ago by Benedikt Meurer
Modified:
4 years, 11 months ago
Reviewers:
Camillo Bruni
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

[runtime] Migrate several Date builtins to C++. Almost all of the Date builtins always call into C++ at least once anyway, so parsing, compiling and executing the JavaScript wrappers is just a waste of time. The most important part here is the Date constructor itself, which is one of the blockers for new.target in TurboFan, because compiling the Date constructor takes too much time with TurboFan (for no reason since we end up in C++ anway). R=cbruni@chromium.org Committed: https://crrev.com/065e9c536f14b3d7cb4d140c6f74e024e31ee1a2 Cr-Commit-Position: refs/heads/master@{#33109}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -351 lines) Patch
M src/api.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/bootstrapper.cc View 2 chunks +28 lines, -11 lines 0 comments Download
M src/builtins.h View 1 chunk +8 lines, -1 line 0 comments Download
M src/builtins.cc View 1 3 chunks +387 lines, -9 lines 0 comments Download
M src/contexts.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/date.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/date.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/execution.h View 2 chunks +0 lines, -7 lines 0 comments Download
M src/execution.cc View 2 chunks +0 lines, -17 lines 0 comments Download
M src/js/date.js View 8 chunks +0 lines, -193 lines 0 comments Download
M src/objects.h View 3 chunks +11 lines, -0 lines 0 comments Download
M src/objects.cc View 2 chunks +60 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/runtime/runtime-date.cc View 3 chunks +2 lines, -66 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 chunk +6 lines, -37 lines 0 comments Download
M test/mjsunit/stack-traces.js View 1 chunk +0 lines, -1 line 0 comments Download
M test/mjsunit/stack-traces-2.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
Benedikt Meurer
4 years, 11 months ago (2016-01-05 09:29:27 UTC) #1
Benedikt Meurer
Hey Camillo, Another builtins cleanup. Please take a look. Thanks, Benedikt
4 years, 11 months ago (2016-01-05 09:30:49 UTC) #2
Camillo Bruni
LGTM with nits https://codereview.chromium.org/1556333002/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1556333002/diff/1/src/builtins.cc#newcode2132 src/builtins.cc:2132: double tv; I'd prefer having time_value ...
4 years, 11 months ago (2016-01-05 10:27:00 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1556333002/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1556333002/diff/1/src/builtins.cc#newcode2132 src/builtins.cc:2132: double tv; On 2016/01/05 10:26:59, cbruni wrote: > I'd ...
4 years, 11 months ago (2016-01-05 10:30:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1556333002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1556333002/20001
4 years, 11 months ago (2016-01-05 10:31:15 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-05 11:05:45 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 11:05:57 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/065e9c536f14b3d7cb4d140c6f74e024e31ee1a2
Cr-Commit-Position: refs/heads/master@{#33109}

Powered by Google App Engine
This is Rietveld 408576698