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_INL_H_
6 #define V8_COMPILER_NODE_AUX_DATA_INL_H_
8 #include "src/compiler/graph.h"
9 #include "src/compiler/node.h"
10 #include "src/compiler/node-aux-data.h"
17 NodeAuxData<T>::NodeAuxData(Zone* zone)
22 void NodeAuxData<T>::Set(Node* node, const T& data) {
24 if (id >= static_cast<int>(aux_data_.size())) {
25 aux_data_.resize(id + 1);
32 T NodeAuxData<T>::Get(Node* node) {
34 if (id >= static_cast<int>(aux_data_.size())) {
41 } // namespace v8::internal::compiler