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

Issue 1516433005: [contexts] Place the initial JSArray maps on the native context directly. (Closed)

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

Description

[contexts] Place the initial JSArray maps on the native context directly. No need to have an indirection to get to the initial JSArray maps from the native context; we only cache the fast elements maps anyway, so those could live on the native context directly. This will also integrate nicely with the load/store propagation in TurboFan (once we propagate the immutable flag for FieldAccess as well). Drive-by-fix: Also don't embed any of the initial JSArray maps in TurboFan generated code when allocating a new JSArray, but instead always load the appropriate map from the native context. This way we ensure that we never leak a reference to one of those maps and its as efficient as embedding a constant map. R=yangguo@chromium.org Committed: https://crrev.com/5964152c8fb61d1b7e19d6c678367fcf014b7700 Cr-Commit-Position: refs/heads/master@{#32779}

Patch Set 1 #

Patch Set 2 : Fix typo in mips/mips64. #

Patch Set 3 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -136 lines) Patch
M src/arm/macro-assembler-arm.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 2 chunks +7 lines, -23 lines 0 comments Download
M src/contexts.h View 1 2 3 chunks +33 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 1 chunk +3 lines, -10 lines 0 comments Download
M src/factory.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 1 chunk +7 lines, -11 lines 0 comments Download
M src/isolate.cc View 1 2 1 chunk +7 lines, -10 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M src/objects.cc View 1 2 2 chunks +16 lines, -26 lines 0 comments Download
M src/ppc/macro-assembler-ppc.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M src/runtime/runtime-literals.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M src/x87/macro-assembler-x87.cc View 1 2 1 chunk +7 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Benedikt Meurer
5 years ago (2015-12-11 06:04:29 UTC) #1
Benedikt Meurer
Hey Yang, Some cleanup/refactoring on the way we deal with the initial maps for the ...
5 years ago (2015-12-11 06:05:10 UTC) #2
Yang
On 2015/12/11 06:05:10, Benedikt Meurer wrote: > Hey Yang, > > Some cleanup/refactoring on the ...
5 years ago (2015-12-11 06:15:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1516433005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1516433005/40001
5 years ago (2015-12-11 06:28:03 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-11 06:50:52 UTC) #7
commit-bot: I haz the power
5 years ago (2015-12-11 06:51:31 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5964152c8fb61d1b7e19d6c678367fcf014b7700
Cr-Commit-Position: refs/heads/master@{#32779}

Powered by Google App Engine
This is Rietveld 408576698