Index: src/compiler/node-cache.h |
diff --git a/src/compiler/node-cache.h b/src/compiler/node-cache.h |
index 7741e1ef36a747e90ffca2721958c6edbd977ae9..2622e4d6cc5474fe488eaa4650cec025c1fb528c 100644 |
--- a/src/compiler/node-cache.h |
+++ b/src/compiler/node-cache.h |
@@ -7,20 +7,12 @@ |
#include "src/base/functional.h" |
#include "src/base/macros.h" |
+#include "src/compiler/node.h" |
Benedikt Meurer
2014/10/15 12:06:39
Don't add the include here. Just forward declare Z
|
namespace v8 { |
namespace internal { |
- |
-// Forward declarations. |
-class Zone; |
- |
- |
namespace compiler { |
-// Forward declarations. |
-class Node; |
- |
- |
// A cache for nodes based on a key. Useful for implementing canonicalization of |
// nodes such as constants, parameters, etc. |
template <typename Key, typename Hash = base::hash<Key>, |
@@ -39,6 +31,8 @@ class NodeCache FINAL { |
// too full or encounters too many hash collisions. |
Node** Find(Zone* zone, Key key); |
+ void GetCachedNodes(NodeVector* nodes); |
+ |
private: |
enum { kInitialSize = 16u, kLinearProbe = 5u }; |