Commit 6d6e759a authored by sigurds@chromium.org's avatar sigurds@chromium.org

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
parent b2159111
......@@ -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>
......
......@@ -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);
......
......@@ -29,7 +29,7 @@ SourcePositionTable::SourcePositionTable(Graph* graph)
: graph_(graph),
decorator_(NULL),
current_position_(SourcePosition::Invalid()),
table_(graph) {}
table_(graph->zone()) {}
void SourcePositionTable::AddDecorator() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment