|
[interpreter] Introduce binary op bytecodes for Smi operand.
Introduces fused bytecodes for fusing LdaSmi followed by a binary op bytecode.
The chosen bytecodes are used frequently in Octane: AddSmi, SubSmi,
BitwiseOrSmi, BitwiseAndSmi, ShiftLeftSmi, ShiftRightSmi.
There are additional code stubs for these operations that are biased towards
both the left hand and right hand operands being Smis.
BUG= v8:4280
LOG=N
Committed: https://crrev.com/40511877eb2f3c7fdab2d0dd86cc9668e5454cb7
Cr-Commit-Position: refs/heads/master@{#37531}
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+531 lines, -161 lines) |
Patch |
|
M |
src/code-stubs.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/bytecode-graph-builder.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/bytecode-graph-builder.cc
|
View
|
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-peephole-optimizer.cc
|
View
|
1
2
3
|
4 chunks |
+50 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-pipeline.h
|
View
|
|
1 chunk |
+15 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-pipeline.cc
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecodes.h
|
View
|
1
2
3
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecodes.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+168 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden
|
View
|
|
4 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/BasicLoops.golden
|
View
|
1
|
30 chunks |
+64 lines, -80 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
View
|
1
|
3 chunks |
+4 lines, -6 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/IfConditions.golden
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden
|
View
|
|
6 chunks |
+12 lines, -18 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/Switch.golden
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden
|
View
|
|
4 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
View
|
1
2
3
|
3 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-array-iterator-unittest.cc
|
View
|
|
3 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+83 lines, -0 lines |
0 comments
|
Download
|
Total messages: 21 (6 generated)
|