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

Issue 1708313002: [stubs] Introduce a dedicated FastNewObjectStub. (Closed)

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

Description

[stubs] Introduce a dedicated FastNewObjectStub. Move the already existing fast case for %NewObject into a dedicated FastNewObjectStub that we can utilize in places where we would otherwise fallback to %NewObject immediately, which is rather expensive. Also use FastNewObjectStub as the generic implementation of JSCreate, which should make constructor inlining based on SharedFunctionInfo (w/o specializing to a concrete closure) viable soon. R=jarin@chromium.org Committed: https://crrev.com/ba2077aac3a775523ca3fc9600fcf76f55e8d1c2 Cr-Commit-Position: refs/heads/master@{#34136}

Patch Set 1 #

Patch Set 2 : Some optimizations. #

Patch Set 3 : Fix typo on arm. #

Patch Set 4 : Remove TODO. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1004 lines, -724 lines) Patch
M src/arm/builtins-arm.cc View 3 chunks +15 lines, -146 lines 2 comments Download
M src/arm/code-stubs-arm.cc View 1 2 1 chunk +125 lines, -0 lines 0 comments Download
M src/arm/interface-descriptors-arm.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 3 chunks +15 lines, -143 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 1 chunk +127 lines, -0 lines 0 comments Download
M src/arm64/interface-descriptors-arm64.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/arm64/macro-assembler-arm64.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/bailout-reason.h View 2 chunks +2 lines, -0 lines 2 comments Download
M src/code-factory.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/code-factory.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/code-stubs.h View 2 chunks +10 lines, -0 lines 0 comments Download
M src/compiler/js-create-lowering.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 3 chunks +17 lines, -147 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 1 chunk +137 lines, -0 lines 0 comments Download
M src/ia32/interface-descriptors-ia32.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/interface-descriptors.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/mips/builtins-mips.cc View 3 chunks +15 lines, -139 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 1 chunk +126 lines, -0 lines 0 comments Download
M src/mips/interface-descriptors-mips.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/mips/macro-assembler-mips.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 1 1 chunk +126 lines, -0 lines 0 comments Download
M src/mips64/interface-descriptors-mips64.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 3 chunks +14 lines, -145 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 1 chunk +133 lines, -0 lines 0 comments Download
M src/x64/interface-descriptors-x64.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (5 generated)
Benedikt Meurer
4 years, 10 months ago (2016-02-18 18:05:48 UTC) #1
Benedikt Meurer
Hey Jaro, Some code moving w/ cleanup. Please take a look. Thanks, Benedikt
4 years, 10 months ago (2016-02-18 18:07:46 UTC) #2
Yang
lgtm. only reviewed arm port though. https://codereview.chromium.org/1708313002/diff/100001/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (left): https://codereview.chromium.org/1708313002/diff/100001/src/arm/builtins-arm.cc#oldcode552 src/arm/builtins-arm.cc:552: if (FLAG_inline_new) { ...
4 years, 10 months ago (2016-02-19 06:51:09 UTC) #6
Benedikt Meurer
https://codereview.chromium.org/1708313002/diff/100001/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (left): https://codereview.chromium.org/1708313002/diff/100001/src/arm/builtins-arm.cc#oldcode552 src/arm/builtins-arm.cc:552: if (FLAG_inline_new) { I suppose yes, but this already ...
4 years, 10 months ago (2016-02-19 06:54:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708313002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708313002/100001
4 years, 10 months ago (2016-02-19 06:54:27 UTC) #9
Yang
On 2016/02/19 06:54:06, Benedikt Meurer wrote: > https://codereview.chromium.org/1708313002/diff/100001/src/arm/builtins-arm.cc > File src/arm/builtins-arm.cc (left): > > https://codereview.chromium.org/1708313002/diff/100001/src/arm/builtins-arm.cc#oldcode552 ...
4 years, 10 months ago (2016-02-19 06:56:50 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 10 months ago (2016-02-19 07:12:24 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 07:13:00 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba2077aac3a775523ca3fc9600fcf76f55e8d1c2
Cr-Commit-Position: refs/heads/master@{#34136}

Powered by Google App Engine
This is Rietveld 408576698