1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef V8_COMPILER_NODE_AUX_DATA_H_
6 #define V8_COMPILER_NODE_AUX_DATA_H_
10 #include "src/zone-allocator.h"
16 // Forward declarations.
23 inline explicit NodeAuxData(Zone* zone);
25 inline void Set(Node* node, const T& data);
26 inline T Get(Node* node);
29 typedef zone_allocator<T> ZoneAllocator;
30 typedef std::vector<T, ZoneAllocator> TZoneVector;
32 TZoneVector aux_data_;
36 } // namespace v8::internal::compiler