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

Issue 1366753003: [turbofan] Make Node::set_op safer via wrapper. (Closed)

Created:
5 years, 3 months ago by Michael Starzinger
Modified:
5 years, 3 months ago
Reviewers:
titzer, Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Make Node::set_op safer via wrapper. This introduces the NodeProperties::ChangeOp helper which guards node operator changes so that additional checking can be done without any additional dependencies being pulled into the Node class. For now only the input count is checked, but additional checking might follow. R=jarin@chromium.org Committed: https://crrev.com/da9c42dd451bfdbe4a15cfe6c68fac544c3c515c Cr-Commit-Position: refs/heads/master@{#30916}

Patch Set 1 #

Patch Set 2 : Fix comment. #

Patch Set 3 : Expand to other reducers. #

Total comments: 14

Patch Set 4 : Some more fixes. #

Patch Set 5 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -165 lines) Patch
M src/compiler/ast-graph-builder.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/common-operator-reducer.cc View 1 2 6 chunks +10 lines, -11 lines 0 comments Download
M src/compiler/control-flow-optimizer.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/dead-code-elimination.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/diamond.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M src/compiler/js-context-specialization.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 7 chunks +8 lines, -8 lines 0 comments Download
M src/compiler/js-inlining.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 1 2 3 4 9 chunks +18 lines, -14 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 4 21 chunks +34 lines, -33 lines 0 comments Download
M src/compiler/machine-operator-reducer.cc View 1 2 3 4 20 chunks +29 lines, -26 lines 0 comments Download
M src/compiler/node.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/compiler/node-properties.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/node-properties.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/compiler/osr.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M src/compiler/select-lowering.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 19 chunks +47 lines, -40 lines 0 comments Download
M src/compiler/simplified-operator-reducer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/tail-call-optimization.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M test/unittests/compiler/graph-reducer-unittest.cc View 1 2 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Jarin
lgtm
5 years, 3 months ago (2015-09-24 11:59:18 UTC) #2
titzer
lgtm
5 years, 3 months ago (2015-09-24 12:05:37 UTC) #4
Michael Starzinger
Going from work-in-progress to full-fledged-solution.
5 years, 3 months ago (2015-09-24 13:51:46 UTC) #5
Jarin
https://codereview.chromium.org/1366753003/diff/40001/src/compiler/control-flow-optimizer.cc File src/compiler/control-flow-optimizer.cc (right): https://codereview.chromium.org/1366753003/diff/40001/src/compiler/control-flow-optimizer.cc#newcode264 src/compiler/control-flow-optimizer.cc:264: NodeProperties::ChangeOp(node, common()->Switch(values.size() + 1)); I am wondering whether ChangeOp ...
5 years, 3 months ago (2015-09-24 14:00:41 UTC) #6
Michael Starzinger
Addressed comments. https://codereview.chromium.org/1366753003/diff/40001/src/compiler/control-flow-optimizer.cc File src/compiler/control-flow-optimizer.cc (right): https://codereview.chromium.org/1366753003/diff/40001/src/compiler/control-flow-optimizer.cc#newcode264 src/compiler/control-flow-optimizer.cc:264: NodeProperties::ChangeOp(node, common()->Switch(values.size() + 1)); On 2015/09/24 14:00:41, ...
5 years, 3 months ago (2015-09-24 14:21:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1366753003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1366753003/80001
5 years, 3 months ago (2015-09-24 14:44:47 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-24 14:46:35 UTC) #11
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 14:46:47 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/da9c42dd451bfdbe4a15cfe6c68fac544c3c515c
Cr-Commit-Position: refs/heads/master@{#30916}

Powered by Google App Engine
This is Rietveld 408576698