|
[interpreter] Introduce fused bytecodes for common sequences.
This change introduces five fused bytecodes for common bytecode
sequences on popular websites. These are LdrNamedProperty,
LdrKeyedProperty, LdrGlobal, LdrContextSlot, and LdrUndefined. These
load values into a destination register operand instead of the
accumulator. They are emitted by the peephole optimizer.
BUG= v8:4280
LOG=N
Committed: https://crrev.com/25b3fe7961fce1dd39a21b0f717750a926eeb681
Cr-Commit-Position: refs/heads/master@{#36507}
Total comments: 24
Total comments: 4
Total comments: 29
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+993 lines, -952 lines) |
Patch |
|
M |
src/compiler/bytecode-graph-builder.h
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/compiler/bytecode-graph-builder.cc
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+57 lines, -18 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-peephole-optimizer.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-peephole-optimizer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+116 lines, -26 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-pipeline.h
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-pipeline.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+27 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecodes.h
|
View
|
1
2
3
4
5
|
4 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
|
M |
src/interpreter/bytecodes.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.h
|
View
|
1
2
3
4
5
|
2 chunks |
+23 lines, -18 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.cc
|
View
|
1
2
3
4
5
6
7
|
18 chunks |
+109 lines, -43 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CallGlobal.golden
|
View
|
|
2 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CallNew.golden
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CallRuntime.golden
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden
|
View
|
1
|
5 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
View
|
1
2
3
4
5
|
8 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
View
|
1
2
3
4
5
|
5 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ContextVariables.golden
|
View
|
|
3 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden
|
View
|
1
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Delete.golden
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/DoExpression.golden
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ForIn.golden
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ForOf.golden
|
View
|
1
|
27 chunks |
+58 lines, -78 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/FunctionLiterals.golden
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Generators.golden
|
View
|
1
2
3
4
5
6
7
8
|
28 chunks |
+58 lines, -91 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/GlobalDelete.golden
|
View
|
|
4 chunks |
+10 lines, -16 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden
|
View
|
|
2 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/PropertyCall.golden
|
View
|
1
|
4 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/PropertyLoads.golden
|
View
|
1
2
3
4
5
|
3 chunks |
+260 lines, -517 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/RegExpLiterals.golden
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
View
|
1
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-array-iterator-unittest.cc
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
Total messages: 43 (19 generated)
|