|
[Interpreter] Move context chain search loop to handler
Moves the context chain search loop out of generated bytecode, and into
the (Lda|Ldr|Sda)ContextSlot handler, by passing the context depth in as
an additional operand. This should decrease the bytecode size and
increase performance for deep context chain searches, at the cost of
slightly increasing bytecode size for shallow context access.
Committed: https://crrev.com/1c0c5fda2699cba9eea89b6d250a3a52d1965198
Cr-Commit-Position: refs/heads/master@{#39378}
Total comments: 18
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+604 lines, -587 lines) |
Patch |
 |
M |
src/compiler/bytecode-graph-builder.cc
|
View
|
|
2 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/bytecode-array-builder.h
|
View
|
1
2
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/bytecode-array-builder.cc
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/bytecode-generator.cc
|
View
|
1
|
9 chunks |
+19 lines, -45 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/bytecodes.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/interpreter.cc
|
View
|
1
2
|
1 chunk |
+16 lines, -9 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/interpreter-assembler.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/interpreter/interpreter-assembler.cc
|
View
|
1
2
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/BasicLoops.golden
|
View
|
|
2 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden
|
View
|
|
2 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
View
|
|
6 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden
|
View
|
|
4 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/ContextParameters.golden
|
View
|
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/ContextVariables.golden
|
View
|
|
6 chunks |
+268 lines, -268 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/CountOperators.golden
|
View
|
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/CreateArguments.golden
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/Delete.golden
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/Eval.golden
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
View
|
|
16 chunks |
+22 lines, -22 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/Generators.golden
|
View
|
|
25 chunks |
+84 lines, -83 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/GlobalDelete.golden
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
|
View
|
|
4 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/LookupSlot.golden
|
View
|
|
3 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden
|
View
|
|
2 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 15 (4 generated)
|