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

Issue 2151773002: Avoid jumping to the runtime for ForInFilter (Closed)

Created:
4 years, 5 months ago by Camillo Bruni
Modified:
4 years, 5 months ago
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[fullcodegen] [crankshaft] Avoid jumping to the runtime for ForInFilter Use the ForInFilterStub directly. Hence we will only jump to the runtime for special receivers (instance_type <= LAST_SPECIAL_RECEIVER_TYPE) and for converting element indices which are not in the string cache. BUG= Committed: https://crrev.com/4b59bf53139f7c7a2c9b105d90f1bbd4c0c0150e Cr-Commit-Position: refs/heads/master@{#37934}

Patch Set 1 #

Patch Set 2 : supporting arm and arm64 #

Patch Set 3 : fix arm64 branch #

Patch Set 4 : make HasProperty runtime function take the receiver as first argument #

Patch Set 5 : using ForInFilterStub #

Patch Set 6 : fix wrong var name #

Patch Set 7 : fixing api test #

Patch Set 8 : use the code stub in turbofan #

Total comments: 8

Patch Set 9 : addressing comments #

Patch Set 10 : fixing mips #

Total comments: 2

Patch Set 11 : addressing nits (moving instruction) #

Patch Set 12 : remove double label #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -161 lines) Patch
M src/code-factory.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/code-factory.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M src/code-stubs.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 6 7 8 3 chunks +57 lines, -7 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -16 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -15 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -15 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -13 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -12 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -18 lines 0 comments Download
M src/interface-descriptors.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-forin.cc View 1 3 chunks +14 lines, -7 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/compiler/optimized-for-in.js View 1 13 chunks +57 lines, -46 lines 0 comments Download

Messages

Total messages: 40 (27 generated)
Camillo Bruni
PTAL
4 years, 5 months ago (2016-07-18 13:35:10 UTC) #6
Camillo Bruni
mstarzinger@ PTAL turbofan code ishell@ PTAL the rest
4 years, 5 months ago (2016-07-19 14:42:53 UTC) #18
Michael Starzinger
LGTM. https://codereview.chromium.org/2151773002/diff/140001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/2151773002/diff/140001/src/code-stubs.cc#newcode4303 src/code-stubs.cc:4303: // static nit: The "static" comment no longer ...
4 years, 5 months ago (2016-07-19 15:06:02 UTC) #21
Igor Sheludko
Looks good. Please add mips ports as well. https://codereview.chromium.org/2151773002/diff/140001/src/full-codegen/arm64/full-codegen-arm64.cc File src/full-codegen/arm64/full-codegen-arm64.cc (right): https://codereview.chromium.org/2151773002/diff/140001/src/full-codegen/arm64/full-codegen-arm64.cc#newcode1106 src/full-codegen/arm64/full-codegen-arm64.cc:1106: RestoreContext(); ...
4 years, 5 months ago (2016-07-20 11:06:51 UTC) #24
Camillo Bruni
jarin@ PTAL crankshaft/* ishell@ PTAL again https://codereview.chromium.org/2151773002/diff/140001/src/full-codegen/arm64/full-codegen-arm64.cc File src/full-codegen/arm64/full-codegen-arm64.cc (right): https://codereview.chromium.org/2151773002/diff/140001/src/full-codegen/arm64/full-codegen-arm64.cc#newcode1106 src/full-codegen/arm64/full-codegen-arm64.cc:1106: RestoreContext(); On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 12:42:42 UTC) #26
Camillo Bruni
v8-ports FYI
4 years, 5 months ago (2016-07-20 13:09:07 UTC) #27
Jarin
crankshaft part lgtm.
4 years, 5 months ago (2016-07-20 13:12:19 UTC) #28
Igor Sheludko
lgtm with a nit: https://codereview.chromium.org/2151773002/diff/180001/src/full-codegen/mips/full-codegen-mips.cc File src/full-codegen/mips/full-codegen-mips.cc (right): https://codereview.chromium.org/2151773002/diff/180001/src/full-codegen/mips/full-codegen-mips.cc#newcode1107 src/full-codegen/mips/full-codegen-mips.cc:1107: __ mov(a0, result_register()); Maybe put ...
4 years, 5 months ago (2016-07-20 14:22:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151773002/200001
4 years, 5 months ago (2016-07-20 16:17:16 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel_ng/builds/5249) v8_linux_arm64_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 5 months ago (2016-07-20 16:51:41 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151773002/220001
4 years, 5 months ago (2016-07-21 09:04:05 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 5 months ago (2016-07-21 09:33:32 UTC) #38
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 09:34:20 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4b59bf53139f7c7a2c9b105d90f1bbd4c0c0150e
Cr-Commit-Position: refs/heads/master@{#37934}

Powered by Google App Engine
This is Rietveld 408576698