5 #ifndef V8_COMPILER_NODE_MARKER_H_ 6 #define V8_COMPILER_NODE_MARKER_H_ 8 #include "src/compiler/node.h" 23 V8_INLINE
Mark Get(
const Node* node) {
24 Mark mark = node->mark();
25 if (mark < mark_min_) {
28 DCHECK_LT(mark, mark_max_);
29 return mark - mark_min_;
32 DCHECK_LT(mark, mark_max_ - mark_min_);
33 DCHECK_LT(node->mark(), mark_max_);
34 node->set_mark(mark + mark_min_);
60 template <
typename State>
66 V8_INLINE State Get(
const Node* node) {
67 return static_cast<State
>(NodeMarkerBase::Get(node));
70 V8_INLINE
void Set(
Node* node, State state) {
71 NodeMarkerBase::Set(node, static_cast<Mark>(state));
79 #endif // V8_COMPILER_NODE_MARKER_H_