Index: src/compiler/node-cache.h |
diff --git a/src/compiler/node-cache.h b/src/compiler/node-cache.h |
index a8f9071af09ef97241222fd3879bc6f1d5fe945b..7063a3b0b49b2e882dac9f612eec7058b019718f 100644 |
--- a/src/compiler/node-cache.h |
+++ b/src/compiler/node-cache.h |
@@ -63,6 +63,14 @@ class NodeCache final { |
// Various default cache types. |
typedef NodeCache<int32_t> Int32NodeCache; |
typedef NodeCache<int64_t> Int64NodeCache; |
+ |
+// All we want is the numeric value of the RelocInfo::Mode enum. We typedef |
+// below to avoid pulling in assembler.h |
+typedef char RelocInfoMode; |
+typedef std::pair<int32_t, RelocInfoMode> RelocInt32Key; |
+typedef std::pair<int64_t, RelocInfoMode> RelocInt64Key; |
+typedef NodeCache<RelocInt32Key> RelocInt32NodeCache; |
+typedef NodeCache<RelocInt64Key> RelocInt64NodeCache; |
#if V8_HOST_ARCH_32_BIT |
typedef Int32NodeCache IntPtrNodeCache; |
#else |