Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: src/compiler/node-cache.h

Issue 656103002: Add JSGraph::GetCachedNodes and NodeCache::GetCachedNodes. These routines are necessary in the dead… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/compiler/node-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 };
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/compiler/node-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698