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

Issue 1384443002: [es6] Fix missing bits for full @@toPrimitive support. (Closed)

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

Description

[es6] Fix missing bits for full @@toPrimitive support. Introduce %_ToNumber intrinsic, which just calls to the existing ToNumberStub, and remove all uses of our custom JavaScript plus intrinsics based ToNumber and friends. Also replace the TO_NUMBER_INLINE macro with TO_NUMBER, which is currently a wrapper for %_ToNumber. Newly written JS code should use TO_NUMBER (similar to TO_STRING, TO_INT32, and friends). Also finally remove the DefaultString/DefaultNumber builtins, which are basically the ES5 version of ToPrimitive. Now all code uses the ES6 version, which is implemented in Object::ToPrimitive and JSReceiver::ToPrimitive in C++. CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg R=jarin@chromium.org BUG=v8:4307 LOG=n Committed: https://crrev.com/2a0759d3ff80abd444a70af60d447de18065da30 Cr-Commit-Position: refs/heads/master@{#31054}

Patch Set 1 #

Patch Set 2 : Fix missing isolate-inl.h include. #

Patch Set 3 : Remove useless cctest. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -325 lines) Patch
M src/array.js View 3 chunks +2 lines, -6 lines 0 comments Download
M src/arraybuffer.js View 1 chunk +0 lines, -2 lines 0 comments Download
M src/contexts.h View 1 chunk +1 line, -3 lines 0 comments Download
M src/date.js View 19 chunks +53 lines, -55 lines 0 comments Download
M src/debug/debug.js View 18 chunks +19 lines, -23 lines 0 comments Download
M src/debug/mirrors.js View 2 chunks +1 line, -3 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/full-codegen/full-codegen.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/harmony-array.js View 2 chunks +0 lines, -2 lines 0 comments Download
M src/harmony-atomics.js View 10 chunks +10 lines, -12 lines 0 comments Download
M src/harmony-simd.js View 4 chunks +31 lines, -31 lines 0 comments Download
M src/harmony-typedarray.js View 2 chunks +0 lines, -2 lines 0 comments Download
M src/hydrogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M src/i18n.js View 3 chunks +2 lines, -3 lines 0 comments Download
M src/json.js View 3 chunks +2 lines, -4 lines 0 comments Download
M src/macros.py View 1 chunk +2 lines, -2 lines 0 comments Download
M src/math.js View 15 chunks +18 lines, -18 lines 0 comments Download
M src/prologue.js View 1 chunk +0 lines, -2 lines 0 comments Download
M src/regexp.js View 1 chunk +0 lines, -5 lines 0 comments Download
M src/runtime.js View 6 chunks +0 lines, -89 lines 0 comments Download
M src/runtime/runtime-numbers.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M src/string.js View 7 chunks +5 lines, -7 lines 0 comments Download
M src/typedarray.js View 2 chunks +1 line, -7 lines 0 comments Download
M src/v8natives.js View 3 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/compiler/test-run-jscalls.cc View 1 2 1 chunk +0 lines, -10 lines 1 comment Download
D test/mjsunit/compiler/jsnatives.js View 1 chunk +0 lines, -32 lines 1 comment Download

Messages

Total messages: 20 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384443002/1
5 years, 2 months ago (2015-10-01 08:24:21 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel/builds/10212) v8_linux_arm64_rel on ...
5 years, 2 months ago (2015-10-01 08:26:59 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384443002/20001
5 years, 2 months ago (2015-10-01 11:31:39 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/4877)
5 years, 2 months ago (2015-10-01 11:42:41 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384443002/40001
5 years, 2 months ago (2015-10-01 11:44:24 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-01 12:57:39 UTC) #12
Benedikt Meurer
Hey Jaro, Here's the final refactoring for full @@toPrimitive support. Mostly straightfoward (we need the ...
5 years, 2 months ago (2015-10-01 13:05:48 UTC) #14
Jarin
lgtm. It is unfortunate that we need to implement EmitToNumber in platform specific files. Perhaps ...
5 years, 2 months ago (2015-10-01 13:22:28 UTC) #15
Benedikt Meurer
On 2015/10/01 13:22:28, Jarin wrote: > lgtm. > > It is unfortunate that we need ...
5 years, 2 months ago (2015-10-01 16:04:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384443002/40001
5 years, 2 months ago (2015-10-01 16:05:12 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-01 16:08:46 UTC) #19
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 16:09:00 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2a0759d3ff80abd444a70af60d447de18065da30
Cr-Commit-Position: refs/heads/master@{#31054}

Powered by Google App Engine
This is Rietveld 408576698