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

Issue 1324713002: [es6] Implement Date.prototype[@@toPrimitive] as C++ builtin. (Closed)

Created:
5 years, 3 months ago by Benedikt Meurer
Modified:
5 years, 3 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] Implement Date.prototype[@@toPrimitive] as C++ builtin. This way we don't need to expose JSReceiver::OrdinaryToPrimitive as runtime function, and we don't need the separate JS trampoline. This also adds tests for ToPrimitive on date objects, which are special. R=mstarzinger@chromium.org BUG=v8:4307 LOG=n Committed: https://crrev.com/3c164506f566ad99016f80c21caa56c060e3e262 Cr-Commit-Position: refs/heads/master@{#30473}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make Date tests independet of timezone #

Total comments: 2

Patch Set 3 : Address Michi's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -73 lines) Patch
M src/bootstrapper.cc View 1 2 3 chunks +54 lines, -15 lines 0 comments Download
M src/builtins.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M src/compiler/linkage.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/date.js View 2 chunks +0 lines, -18 lines 0 comments Download
M src/objects.h View 1 2 4 chunks +13 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 4 chunks +51 lines, -13 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M test/mjsunit/harmony/to-name.js View 1 1 chunk +4 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/to-number.js View 1 chunk +4 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/to-primitive.js View 1 4 chunks +8 lines, -12 lines 0 comments Download
M test/mjsunit/harmony/to-string.js View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Benedikt Meurer
5 years, 3 months ago (2015-08-31 11:44:40 UTC) #1
Benedikt Meurer
PTAL
5 years, 3 months ago (2015-08-31 11:45:26 UTC) #2
Michael Starzinger
LGTM. https://codereview.chromium.org/1324713002/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/1324713002/diff/1/src/objects.h#newcode176 src/objects.h:176: // Valid hints for the abstract operations OrdinaryToPrimitive, ...
5 years, 3 months ago (2015-08-31 12:12:57 UTC) #3
Benedikt Meurer
Addressed feedback. Thanks. https://codereview.chromium.org/1324713002/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/1324713002/diff/1/src/objects.h#newcode176 src/objects.h:176: // Valid hints for the abstract ...
5 years, 3 months ago (2015-08-31 12:26:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324713002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324713002/40001
5 years, 3 months ago (2015-08-31 12:27:00 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-08-31 12:53:06 UTC) #8
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 12:53:17 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3c164506f566ad99016f80c21caa56c060e3e262
Cr-Commit-Position: refs/heads/master@{#30473}

Powered by Google App Engine
This is Rietveld 408576698