summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/common-node-cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/common-node-cache.h')
-rw-r--r--deps/v8/src/compiler/common-node-cache.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/common-node-cache.h b/deps/v8/src/compiler/common-node-cache.h
index 720bc1531d..1f07703e72 100644
--- a/deps/v8/src/compiler/common-node-cache.h
+++ b/deps/v8/src/compiler/common-node-cache.h
@@ -52,6 +52,16 @@ class CommonNodeCache final {
Node** FindHeapConstant(Handle<HeapObject> value);
+ Node** FindRelocatableInt32Constant(int32_t value, RelocInfoMode rmode) {
+ return relocatable_int32_constants_.Find(zone(),
+ std::make_pair(value, rmode));
+ }
+
+ Node** FindRelocatableInt64Constant(int64_t value, RelocInfoMode rmode) {
+ return relocatable_int64_constants_.Find(zone(),
+ std::make_pair(value, rmode));
+ }
+
// Return all nodes from the cache.
void GetCachedNodes(ZoneVector<Node*>* nodes);
@@ -65,6 +75,8 @@ class CommonNodeCache final {
IntPtrNodeCache external_constants_;
Int64NodeCache number_constants_;
IntPtrNodeCache heap_constants_;
+ RelocInt32NodeCache relocatable_int32_constants_;
+ RelocInt64NodeCache relocatable_int64_constants_;
Zone* const zone_;
DISALLOW_COPY_AND_ASSIGN(CommonNodeCache);