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:
parent
b2159111cf
commit
6d6e759a6a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user