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

Issue 2209633002: [Interpreter] Assign feedback slots for binary operations and use them in ignition. (Closed)

Created:
4 years, 4 months ago by mythria
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Assign feedback slots for binary operations and use them in ignition. Assign feedback slots in the type feedback vector for binary operations. Update bytecode-generator to use these slots and add them as an operand to binary operations. BUG=v8:4280 LOG=N Committed: https://crrev.com/9e3e2ee2dd033965606213ad6f721425cb1f02a6 Cr-Commit-Position: refs/heads/master@{#38408}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments from Ross. #

Patch Set 3 : rebased the patch. #

Total comments: 4

Patch Set 4 : addressed comments from Michi #

Patch Set 5 : fixed a compile error. #

Patch Set 6 : Rebased the patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -308 lines) Patch
M src/ast/ast.h View 1 2 3 4 5 4 chunks +17 lines, -0 lines 0 comments Download
M src/ast/ast.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M src/ast/ast-numbering.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 2 chunks +19 lines, -13 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden View 3 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden View 11 chunks +29 lines, -29 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 1 2 3 4 5 22 chunks +33 lines, -33 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 1 2 17 chunks +23 lines, -23 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoExpression.golden View 1 chunk +3 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForIn.golden View 1 chunk +8 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCountOperators.golden View 4 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/JumpsRequiringConstantWideOperands.golden View 3 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden View 5 chunks +10 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyCall.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.golden View 3 chunks +7 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden View 5 chunks +10 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WideRegisters.golden View 4 chunks +13 lines, -13 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 4 5 16 chunks +140 lines, -33 lines 0 comments Download
M test/cctest/test-feedback-vector.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 4 5 15 chunks +52 lines, -50 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-iterator-unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M test/unittests/interpreter/bytecode-dead-code-optimizer-unittest.cc View 7 chunks +7 lines, -7 lines 0 comments Download
M test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc View 8 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 38 (29 generated)
mythria
This cl adds a slot for binary operations in type feedback vector. These will be ...
4 years, 4 months ago (2016-08-03 11:00:55 UTC) #4
rmcilroy
Interpreter changes LGTM, thanks. https://codereview.chromium.org/2209633002/diff/1/src/ast/ast.cc File src/ast/ast.cc (right): https://codereview.chromium.org/2209633002/diff/1/src/ast/ast.cc#newcode292 src/ast/ast.cc:292: // Assign a slot to ...
4 years, 4 months ago (2016-08-03 16:04:30 UTC) #7
rmcilroy
Michi: Michael Stanton is OOO, could you review the type feedback vector changes?
4 years, 4 months ago (2016-08-04 19:11:55 UTC) #9
mythria
Thanks Ross, I fixed your comments. Also thanks for adding mstarzinger for review. https://codereview.chromium.org/2209633002/diff/1/src/ast/ast.cc File ...
4 years, 4 months ago (2016-08-05 07:08:15 UTC) #14
Michael Starzinger
LGTM. https://codereview.chromium.org/2209633002/diff/40001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2209633002/diff/40001/src/ast/ast.h#newcode2444 src/ast/ast.h:2444: FeedbackVectorSlot binary_operation_slot_; nit: This field seems to be ...
4 years, 4 months ago (2016-08-05 09:44:27 UTC) #19
mythria
Thanks Michi, I fixed both of them. Thanks, Mythri https://codereview.chromium.org/2209633002/diff/40001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2209633002/diff/40001/src/ast/ast.h#newcode2444 src/ast/ast.h:2444: ...
4 years, 4 months ago (2016-08-05 09:55:18 UTC) #20
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/2209633002/100001
4 years, 4 months ago (2016-08-08 01:13:04 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-08 01:15:32 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 01:17:06 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9e3e2ee2dd033965606213ad6f721425cb1f02a6
Cr-Commit-Position: refs/heads/master@{#38408}

Powered by Google App Engine
This is Rietveld 408576698