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

Issue 1400463002: [builtins] Drop useless ToBoolean JavaScript builtin. (Closed)

Created:
5 years, 2 months ago by Benedikt Meurer
Modified:
5 years, 2 months ago
Reviewers:
Toon Verwaest
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

[builtins] Drop useless ToBoolean JavaScript builtin. There's no need for a dedicated ToBoolean builtin in JavaScript, since ToBoolean(x) can easily be expressed in JavaScript as !!x, which has the additional advantage that the compilers are able to properly optimize that (out of the box). Committed: https://crrev.com/519f215137659077c7649e496ced5be516685932 Cr-Commit-Position: refs/heads/master@{#31172}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding ( ) to macros.py. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -38 lines) Patch
M src/debug/debug.js View 8 chunks +8 lines, -10 lines 0 comments Download
M src/debug/mirrors.js View 2 chunks +1 line, -3 lines 0 comments Download
M src/macros.py View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/prologue.js View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime.js View 3 chunks +1 line, -15 lines 0 comments Download
M src/v8natives.js View 5 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Benedikt Meurer
Hey Toon, Removing awesomeness! Please take a look. Thanks, Benedikt
5 years, 2 months ago (2015-10-08 07:15:25 UTC) #2
Toon Verwaest
lgtm with one comment https://codereview.chromium.org/1400463002/diff/1/src/macros.py File src/macros.py (right): https://codereview.chromium.org/1400463002/diff/1/src/macros.py#newcode144 src/macros.py:144: macro TO_BOOLEAN(arg) = (!!arg); what ...
5 years, 2 months ago (2015-10-08 08:56:56 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1400463002/diff/1/src/macros.py File src/macros.py (right): https://codereview.chromium.org/1400463002/diff/1/src/macros.py#newcode144 src/macros.py:144: macro TO_BOOLEAN(arg) = (!!arg); On 2015/10/08 08:56:56, Toon Verwaest ...
5 years, 2 months ago (2015-10-08 08:58:00 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1400463002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1400463002/20001
5 years, 2 months ago (2015-10-08 08:58:16 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-08 09:19:19 UTC) #7
commit-bot: I haz the power
5 years, 2 months ago (2015-10-08 09:19:29 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/519f215137659077c7649e496ced5be516685932
Cr-Commit-Position: refs/heads/master@{#31172}

Powered by Google App Engine
This is Rietveld 408576698