Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Issue 2263253002: [interpreter] Make the binary op with Smi bytecode handlers collect type feedback. (Closed)

Created:
4 years, 4 months ago by epertoso
Modified:
4 years, 4 months ago
Reviewers:
Jarin, *rmcilroy
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, rmcilroy, v8-ppc-ports_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] Make the binary op with Smi bytecode handlers collect type feedback. Drive-by fix: the order of parameters in the BinaryOpWithFeedback TurboFan code stubs now reflects the convention of having the context at the end. BUG=v8:5273 Committed: https://crrev.com/b305c7dfcbc11bf9d6f440cba039d733bade92c3 Cr-Commit-Position: refs/heads/master@{#38832}

Patch Set 1 #

Patch Set 2 : Fix some interpreter tests. #

Total comments: 8

Patch Set 3 : Added tests. #

Total comments: 2

Patch Set 4 : Update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -199 lines) Patch
M src/arm/interface-descriptors-arm.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/arm64/interface-descriptors-arm64.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/code-stubs.h View 6 chunks +7 lines, -7 lines 0 comments Download
M src/code-stubs.cc View 5 chunks +10 lines, -10 lines 0 comments Download
M src/compiler/bytecode-graph-builder.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 5 chunks +40 lines, -40 lines 0 comments Download
M src/ia32/interface-descriptors-ia32.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/interface-descriptors.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/interface-descriptors.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-peephole-optimizer.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-pipeline.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 chunk +8 lines, -6 lines 0 comments Download
M src/interpreter/interpreter.cc View 11 chunks +64 lines, -10 lines 0 comments Download
M src/mips/interface-descriptors-mips.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/mips64/interface-descriptors-mips64.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/ppc/interface-descriptors-ppc.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/x64/interface-descriptors-x64.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/x87/interface-descriptors-x87.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden View 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 30 chunks +63 lines, -63 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden View 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden View 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IfConditions.golden View 1 chunk +3 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden View 6 chunks +12 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Switch.golden View 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden View 3 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 8 chunks +111 lines, -7 lines 0 comments Download
M test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
epertoso
4 years, 4 months ago (2016-08-22 15:25:32 UTC) #4
rmcilroy
Looks great, thanks! LGTM, but if you can add some test-interpreter tests to test feedback ...
4 years, 4 months ago (2016-08-23 10:28:53 UTC) #14
epertoso
https://codereview.chromium.org/2263253002/diff/20001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2263253002/diff/20001/src/compiler/bytecode-graph-builder.cc#newcode1206 src/compiler/bytecode-graph-builder.cc:1206: BinaryOperationHint BytecodeGraphBuilder::GetBinaryOperationHint(int index) { On 2016/08/23 10:28:53, rmcilroy wrote: ...
4 years, 4 months ago (2016-08-23 13:24:28 UTC) #15
rmcilroy
https://codereview.chromium.org/2263253002/diff/40001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2263253002/diff/40001/src/interpreter/bytecode-array-builder.h#newcode222 src/interpreter/bytecode-array-builder.h:222: BytecodeArrayBuilder& BinaryOperationSmi(Token::Value binop, Please don't add this as a ...
4 years, 4 months ago (2016-08-23 13:31:17 UTC) #18
Jarin
lgtm
4 years, 4 months ago (2016-08-23 13:35:35 UTC) #19
epertoso
https://codereview.chromium.org/2263253002/diff/40001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2263253002/diff/40001/src/interpreter/bytecode-array-builder.h#newcode222 src/interpreter/bytecode-array-builder.h:222: BytecodeArrayBuilder& BinaryOperationSmi(Token::Value binop, On 2016/08/23 13:31:17, rmcilroy wrote: > ...
4 years, 4 months ago (2016-08-23 14:22:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2263253002/60001
4 years, 4 months ago (2016-08-23 14:25:03 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-23 14:59:18 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 14:59:40 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b305c7dfcbc11bf9d6f440cba039d733bade92c3
Cr-Commit-Position: refs/heads/master@{#38832}

Powered by Google App Engine
This is Rietveld 408576698