%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_ALL_NODES_H_ #define V8_COMPILER_ALL_NODES_H_ #include "src/compiler/node.h" #include "src/zone/zone-containers.h" namespace v8 { namespace internal { namespace compiler { // A helper utility that traverses the graph and gathers all nodes reachable // from end. class AllNodes { public: // Constructor. Traverses the graph and builds the {reachable} set of nodes // reachable from {end}. When {only_inputs} is true, find the nodes // reachable through input edges; these are all live nodes. AllNodes(Zone* local_zone, Node* end, const Graph* graph, bool only_inputs = true); // Constructor. Traverses the graph and builds the {reachable} set of nodes // reachable from the End node. AllNodes(Zone* local_zone, const Graph* graph, bool only_inputs = true); bool IsLive(const Node* node) const { CHECK(only_inputs_); return IsReachable(node); } bool IsReachable(const Node* node) const { if (!node) return false; size_t id = node->id(); return id < is_reachable_.size() && is_reachable_[id]; } NodeVector reachable; // Nodes reachable from end. private: void Mark(Zone* local_zone, Node* end, const Graph* graph); BoolVector is_reachable_; const bool only_inputs_; }; } // namespace compiler } // namespace internal } // namespace v8 #endif // V8_COMPILER_ALL_NODES_H_