|
[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}
|
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
|
Total messages: 9 (3 generated)
|