| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_ALL_NODES_H_ | 5 #ifndef V8_COMPILER_ALL_NODES_H_ |
| 6 #define V8_COMPILER_ALL_NODES_H_ | 6 #define V8_COMPILER_ALL_NODES_H_ |
| 7 | 7 |
| 8 #include "src/compiler/graph.h" | 8 #include "src/compiler/graph.h" |
| 9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
| 10 #include "src/v8.h" | |
| 11 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
| 12 | 11 |
| 13 namespace v8 { | 12 namespace v8 { |
| 14 namespace internal { | 13 namespace internal { |
| 15 namespace compiler { | 14 namespace compiler { |
| 16 | 15 |
| 17 // A helper utility that traverses the graph and gathers all nodes reachable | 16 // A helper utility that traverses the graph and gathers all nodes reachable |
| 18 // from end. | 17 // from end. |
| 19 class AllNodes { | 18 class AllNodes { |
| 20 public: | 19 public: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 private: | 32 private: |
| 34 enum State { kDead, kGray, kLive }; | 33 enum State { kDead, kGray, kLive }; |
| 35 | 34 |
| 36 ZoneVector<State> state; | 35 ZoneVector<State> state; |
| 37 }; | 36 }; |
| 38 } | 37 } |
| 39 } | 38 } |
| 40 } // namespace v8::internal::compiler | 39 } // namespace v8::internal::compiler |
| 41 | 40 |
| 42 #endif // V8_COMPILER_ALL_NODES_H_ | 41 #endif // V8_COMPILER_ALL_NODES_H_ |
| OLD | NEW |