[turbofan] Make Node::set_op safer via wrapper.
authormstarzinger <mstarzinger@chromium.org>
Thu, 24 Sep 2015 14:46:29 +0000 (07:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 24 Sep 2015 14:46:37 +0000 (14:46 +0000)
commitda9c42dd451bfdbe4a15cfe6c68fac544c3c515c
tree170268e1efbf7f8defe08013f483fe5036516992
parent9e5b0a5abc926f197da10b5f18f0e5745779512b
[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

Review URL: https://codereview.chromium.org/1366753003

Cr-Commit-Position: refs/heads/master@{#30916}
21 files changed:
src/compiler/ast-graph-builder.cc
src/compiler/bytecode-graph-builder.cc
src/compiler/common-operator-reducer.cc
src/compiler/control-flow-optimizer.cc
src/compiler/dead-code-elimination.cc
src/compiler/diamond.h
src/compiler/js-context-specialization.cc
src/compiler/js-generic-lowering.cc
src/compiler/js-inlining.cc
src/compiler/js-intrinsic-lowering.cc
src/compiler/js-typed-lowering.cc
src/compiler/machine-operator-reducer.cc
src/compiler/node-properties.cc
src/compiler/node-properties.h
src/compiler/node.h
src/compiler/osr.cc
src/compiler/select-lowering.cc
src/compiler/simplified-lowering.cc
src/compiler/simplified-operator-reducer.cc
src/compiler/tail-call-optimization.cc
test/unittests/compiler/graph-reducer-unittest.cc