NodeAuxData needs a Zone, not a Graph.

BUG=
R=titzer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22965 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
sigurds@chromium.org 2014-08-07 09:11:42 +00:00
parent b2159111cf
commit 6d6e759a6a
3 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@ namespace internal {
namespace compiler {
template <class T>
NodeAuxData<T>::NodeAuxData(Graph* graph)
: aux_data_(ZoneAllocator(graph->zone())) {}
NodeAuxData<T>::NodeAuxData(Zone* zone)
: aux_data_(ZoneAllocator(zone)) {}
template <class T>

View File

@ -20,7 +20,7 @@ class Node;
template <class T>
class NodeAuxData {
public:
inline explicit NodeAuxData(Graph* graph);
inline explicit NodeAuxData(Zone* zone);
inline void Set(Node* node, const T& data);
inline T Get(Node* node);

View File

@ -29,7 +29,7 @@ SourcePositionTable::SourcePositionTable(Graph* graph)
: graph_(graph),
decorator_(NULL),
current_position_(SourcePosition::Invalid()),
table_(graph) {}
table_(graph->zone()) {}
void SourcePositionTable::AddDecorator() {