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

Issue 1295433002: [runtime] Remove useless IN builtin. (Closed)

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

Description

[runtime] Remove useless IN builtin. Similar to DELETE, the IN builtin is just a thin wrapper for %HasElement and %HasProperty anyway, and cannot be optimized, plus it had a weird special fast case (which also involved at least one LOAD_IC plus some intrinsic magic). R=yangguo@chromium.org,jarin@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_win_nosnap_shared_rel Committed: https://crrev.com/72d60a1e80e81e2e68ca402665e2acbc46c5e471 Cr-Commit-Position: refs/heads/master@{#30154} Committed: https://crrev.com/3dc9b122fa9f7d551e05f5b9d7415bcfdcac92db Cr-Commit-Position: refs/heads/master@{#30582}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unused ObjectIsNonNegativeSmi operator. #

Patch Set 3 : REBASE #

Patch Set 4 : REBASE again. Remove unused ReplaceWithBuiltinCall. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -350 lines) Patch
M src/compiler/js-generic-lowering.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 2 3 2 chunks +1 line, -33 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M src/compiler/opcodes.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 3 1 chunk +0 lines, -19 lines 0 comments Download
M src/compiler/simplified-operator.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/simplified-operator.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/typer.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M src/compiler/verifier.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M src/contexts.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 2 chunks +1 line, -23 lines 0 comments Download
M src/full-codegen/full-codegen.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M src/runtime.js View 1 2 3 2 chunks +0 lines, -16 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M src/runtime/runtime-numbers.cc View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 1 chunk +15 lines, -15 lines 0 comments Download
M test/cctest/compiler/test-run-inlining.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M test/cctest/compiler/test-run-intrinsics.cc View 1 2 3 1 chunk +0 lines, -12 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M test/unittests/compiler/js-intrinsic-lowering-unittest.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M test/unittests/compiler/simplified-operator-unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
Benedikt Meurer
5 years, 4 months ago (2015-08-13 11:59:37 UTC) #1
Benedikt Meurer
Hey Yang, Jarin, Another useless builtin gone. Yang, please review the CL overall. Jarin please ...
5 years, 4 months ago (2015-08-13 12:00:48 UTC) #3
Jarin
lgtm
5 years, 4 months ago (2015-08-13 12:05:56 UTC) #4
Yang
LGTM if removed IN from builtins.h https://codereview.chromium.org/1295433002/diff/1/src/runtime/runtime-object.cc File src/runtime/runtime-object.cc (right): https://codereview.chromium.org/1295433002/diff/1/src/runtime/runtime-object.cc#newcode811 src/runtime/runtime-object.cc:811: Maybe<bool> maybe = ...
5 years, 4 months ago (2015-08-13 12:07:37 UTC) #5
Benedikt Meurer
https://codereview.chromium.org/1295433002/diff/1/src/runtime/runtime-object.cc File src/runtime/runtime-object.cc (right): https://codereview.chromium.org/1295433002/diff/1/src/runtime/runtime-object.cc#newcode811 src/runtime/runtime-object.cc:811: Maybe<bool> maybe = JSReceiver::HasProperty(receiver, name); Mhm, yeah, there's moar ...
5 years, 4 months ago (2015-08-13 12:11:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1295433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1295433002/20001
5 years, 4 months ago (2015-08-13 12:11:25 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-13 12:39:08 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/72d60a1e80e81e2e68ca402665e2acbc46c5e471 Cr-Commit-Position: refs/heads/master@{#30154}
5 years, 4 months ago (2015-08-13 12:39:32 UTC) #11
Benedikt Meurer
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1288923002/ by bmeurer@chromium.org. ...
5 years, 4 months ago (2015-08-13 13:06:29 UTC) #12
adamk
The CL description says this builtin is "useless", but the fast path for arrays was ...
5 years, 4 months ago (2015-08-13 18:04:50 UTC) #14
Benedikt Meurer
On 2015/08/13 18:04:50, adamk wrote: > The CL description says this builtin is "useless", but ...
5 years, 4 months ago (2015-08-14 05:06:34 UTC) #15
Yang
On 2015/08/14 05:06:34, Benedikt Meurer wrote: > On 2015/08/13 18:04:50, adamk wrote: > > The ...
5 years, 4 months ago (2015-08-14 06:35:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1295433002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1295433002/160001
5 years, 3 months ago (2015-09-04 08:21:35 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:160001)
5 years, 3 months ago (2015-09-04 08:44:30 UTC) #25
commit-bot: I haz the power
5 years, 3 months ago (2015-09-04 08:44:45 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3dc9b122fa9f7d551e05f5b9d7415bcfdcac92db
Cr-Commit-Position: refs/heads/master@{#30582}

Powered by Google App Engine
This is Rietveld 408576698