summaryrefslogtreecommitdiff
path: root/deps/v8/src/utils.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-08-17 08:37:25 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-08-17 08:37:25 -0700
commit91757fa8400654b69de18e3840c402e369521b68 (patch)
tree0ee925b614e1efda3821a313f9b77b7152752704 /deps/v8/src/utils.h
parentd4f4380f7ea04ee045fae1661242a5a7f2f1267a (diff)
downloadnode-new-91757fa8400654b69de18e3840c402e369521b68.tar.gz
Upgrade V8 to 2.3.8
Diffstat (limited to 'deps/v8/src/utils.h')
-rw-r--r--deps/v8/src/utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/utils.h b/deps/v8/src/utils.h
index 236b85e64d..d15319c7a1 100644
--- a/deps/v8/src/utils.h
+++ b/deps/v8/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_