Index: src/compiler/common-node-cache.h |
diff --git a/src/compiler/common-node-cache.h b/src/compiler/common-node-cache.h |
index f9a832bc8cbe2ead944e5bf2aff721279d987b97..2b0ac0b6e2bf9e218dc421efcdca83c234891319 100644 |
--- a/src/compiler/common-node-cache.h |
+++ b/src/compiler/common-node-cache.h |
@@ -7,7 +7,6 @@ |
#include "src/assembler.h" |
#include "src/compiler/node-cache.h" |
-#include "src/unique.h" |
namespace v8 { |
namespace internal { |
@@ -28,8 +27,7 @@ class CommonNodeCache V8_FINAL : public ZoneObject { |
} |
Node** FindExternalConstant(ExternalReference reference) { |
- return external_constants_.Find( |
- zone_, reinterpret_cast<intptr_t>(reference.address())); |
+ return external_constants_.Find(zone_, reference.address()); |
} |
Node** FindNumberConstant(double value) { |
@@ -37,23 +35,17 @@ class CommonNodeCache V8_FINAL : public ZoneObject { |
return number_constants_.Find(zone_, BitCast<int64_t>(value)); |
} |
- Node** FindHeapConstant(PrintableUnique<HeapObject> object) { |
- return heap_constants_.Find(zone_, object.Hashcode()); |
- } |
+ Zone* zone() const { return zone_; } |
private: |
Int32NodeCache int32_constants_; |
Int64NodeCache float64_constants_; |
- IntPtrNodeCache external_constants_; |
+ PtrNodeCache external_constants_; |
Int64NodeCache number_constants_; |
- IntPtrNodeCache heap_constants_; |
Zone* zone_; |
- |
- DISALLOW_COPY_AND_ASSIGN(CommonNodeCache); |
}; |
- |
-} // namespace compiler |
-} // namespace internal |
-} // namespace v8 |
+} |
+} |
+} // namespace v8::internal::compiler |
#endif // V8_COMPILER_COMMON_NODE_CACHE_H_ |