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

Issue 2804813003: [turbofan] Collect and use type feedback on ToNumber. (Closed)

Created:
3 years, 8 months ago by Benedikt Meurer
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Collect and use type feedback on ToNumber. Make Ignition collect BinaryOperationFeedback on ToNumber, using the shared type feedback slot with the following Inc/Dec bytecode, and use this feedback in TurboFan to turn the ToNumber(x) operation into a SpeculativeNumberMultiply(x,1) with the feedback hint. R=jarin@chromium.org, mstarzinger@chromium.org, rmcilroy@chromium.org BUG=v8:6214, v8:5267 Review-Url: https://codereview.chromium.org/2804813003 Cr-Commit-Position: refs/heads/master@{#44440} Committed: https://chromium.googlesource.com/v8/v8/+/dd7ce93ce0262fff292edeb6fb58d9aed2c29554

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address Feedback. #

Patch Set 3 : Address Michis feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -36 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 chunk +15 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter-generator.cc View 1 2 1 chunk +46 lines, -3 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/CountOperators.golden View 9 chunks +12 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCountOperators.golden View 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Modules.golden View 6 chunks +6 lines, -6 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
Benedikt Meurer
3 years, 8 months ago (2017-04-06 11:10:04 UTC) #1
rmcilroy
LGTM for now, but I'd like to avoid collecting the same feedback twice in the ...
3 years, 8 months ago (2017-04-06 11:21:32 UTC) #4
Michael Starzinger
LGTM. https://codereview.chromium.org/2804813003/diff/1/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/2804813003/diff/1/src/interpreter/interpreter-assembler.cc#newcode1154 src/interpreter/interpreter-assembler.cc:1154: Node* InterpreterAssembler::ToNumberWithFeedback(Node* context, Node* object, On 2017/04/06 11:21:31, ...
3 years, 8 months ago (2017-04-06 11:28:31 UTC) #5
Benedikt Meurer
Thanks, feedback addressed. https://codereview.chromium.org/2804813003/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2804813003/diff/1/src/interpreter/bytecode-generator.cc#newcode2979 src/interpreter/bytecode-generator.cc:2979: FeedbackSlot count_slot = expr->CountBinaryOpFeedbackSlot(); On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 11:30:00 UTC) #8
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/2804813003/40001
3 years, 8 months ago (2017-04-06 11:30:25 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 11:54:52 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/dd7ce93ce0262fff292edeb6fb58d9aed2c...

Powered by Google App Engine
This is Rietveld 408576698