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

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

Issue 1523323005: [turbofan] Implement proper caching of heap constants in the JSGraph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « no previous file | src/compiler/common-node-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-node-cache.h
diff --git a/src/compiler/common-node-cache.h b/src/compiler/common-node-cache.h
index b0100aaac6cd5140754c0f56a9d5e6ac5c3cf440..720bc1531dd47c46df3cc577eee94bf984587ee5 100644
--- a/src/compiler/common-node-cache.h
+++ b/src/compiler/common-node-cache.h
@@ -12,6 +12,9 @@ namespace internal {
// Forward declarations.
class ExternalReference;
+class HeapObject;
+template <typename>
+class Handle;
namespace compiler {
@@ -47,6 +50,8 @@ class CommonNodeCache final {
return number_constants_.Find(zone(), bit_cast<int64_t>(value));
}
+ Node** FindHeapConstant(Handle<HeapObject> value);
+
// Return all nodes from the cache.
void GetCachedNodes(ZoneVector<Node*>* nodes);
@@ -59,7 +64,8 @@ class CommonNodeCache final {
Int64NodeCache float64_constants_;
IntPtrNodeCache external_constants_;
Int64NodeCache number_constants_;
- Zone* zone_;
+ IntPtrNodeCache heap_constants_;
+ Zone* const zone_;
DISALLOW_COPY_AND_ASSIGN(CommonNodeCache);
};
« no previous file with comments | « no previous file | src/compiler/common-node-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698