Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 236b85e64d096674409a68a2494ddd644f47690a..d15319c7a1c42408dde7220640f48cb47d38a212 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -739,7 +739,11 @@ inline Dest BitCast(const Source& source) { |
return dest; |
} |
-} } // namespace v8::internal |
+template <class Dest, class Source> |
+inline Dest BitCast(Source* const & source) { |
+ return BitCast<Dest>(reinterpret_cast<uintptr_t>(source)); |
+} |
+} } // namespace v8::internal |
#endif // V8_UTILS_H_ |