[turbofan] Cleanup Graph and related classes.
authorbmeurer <bmeurer@chromium.org>
Wed, 7 Jan 2015 14:42:38 +0000 (06:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 7 Jan 2015 14:42:49 +0000 (14:42 +0000)
commite53845d41cc82f681e04c9ff2c1894f42939a292
tree9ffd266f87695f002f0f7a8486817747581810b2
parentcc538447964503226f38503f34d46aed8add52b1
[turbofan] Cleanup Graph and related classes.

- Move NodeMarker to its own file, and introduce a non
  templatized base class.
- Cleanup the include hell.
- Sanitize the Node construction methods now that we
  got rid of that GenericNode/GenericGraph stuff.
- Protect against NodeId overflow in Graph.
- Various minor cleanups.

TEST=cctest,mjsunit,unittests

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

Cr-Commit-Position: refs/heads/master@{#25977}
20 files changed:
BUILD.gn
src/compiler/common-operator-reducer.cc
src/compiler/control-reducer.cc
src/compiler/graph-builder.h
src/compiler/graph-reducer.h
src/compiler/graph.cc
src/compiler/graph.h
src/compiler/loop-analysis.cc
src/compiler/node-marker.cc [new file with mode: 0644]
src/compiler/node-marker.h [new file with mode: 0644]
src/compiler/node.cc
src/compiler/node.h
src/compiler/scheduler.cc
src/compiler/simplified-operator-reducer.h
test/cctest/compiler/test-graph-reducer.cc
test/cctest/compiler/test-node-cache.cc
test/unittests/compiler/common-operator-reducer-unittest.cc
test/unittests/compiler/graph-reducer-unittest.cc
test/unittests/compiler/value-numbering-reducer-unittest.cc
tools/gyp/v8.gyp