|
[ignition] Add bytecodes for loads/stores in the current context
The majority of context slot accesses are to the local context (current context
register and depth 0), so this adds bytecodes to optimise for that case.
This cuts down bytecode size by roughly 1% (measured on Octane and Top25).
Committed: https://crrev.com/d2caa302a7bc8cd54dbfaf4e4cfbb3fb81ada378
Cr-Commit-Position: refs/heads/master@{#40641}
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+624 lines, -531 lines) |
Patch |
|
M |
src/compiler/bytecode-graph-builder.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/bytecode-graph-builder.cc
|
View
|
1
|
2 chunks |
+28 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-array-builder.cc
|
View
|
1
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecodes.h
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.cc
|
View
|
1
|
4 chunks |
+38 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/mkpeephole.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/BasicLoops.golden
|
View
|
1
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden
|
View
|
1
|
2 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
View
|
1
|
6 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden
|
View
|
1
|
4 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ContextParameters.golden
|
View
|
1
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ContextVariables.golden
|
View
|
1
|
6 chunks |
+268 lines, -268 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CountOperators.golden
|
View
|
1
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CreateArguments.golden
|
View
|
1
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Delete.golden
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Eval.golden
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
View
|
1
|
16 chunks |
+22 lines, -22 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Generators.golden
|
View
|
1
|
23 chunks |
+45 lines, -44 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/GlobalDelete.golden
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
|
View
|
1
|
4 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/LookupSlot.golden
|
View
|
1
|
5 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Modules.golden
|
View
|
1
|
35 chunks |
+70 lines, -70 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
View
|
1
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (8 generated)
|