Index: src/v8utils.h |
=================================================================== |
--- src/v8utils.h (revision 9511) |
+++ src/v8utils.h (working copy) |
@@ -142,8 +142,14 @@ |
} |
-template <typename T> |
-static inline void MemsetPointer(T** dest, T* value, int counter) { |
+template <typename T, typename U> |
+static inline void MemsetPointer(T** dest, U* value, int counter) { |
+#ifdef DEBUG |
+ T* a = NULL; |
+ U* b = NULL; |
+ a = b; // Fake assignment to check assignability. |
+ USE(a); |
+#endif // DEBUG |
#if defined(V8_HOST_ARCH_IA32) |
#define STOS "stosl" |
#elif defined(V8_HOST_ARCH_X64) |