Forcibly inline bit_cast when building with GCC.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Tue, 23 Sep 2014 06:30:15 +0000 (06:30 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Tue, 23 Sep 2014 06:30:15 +0000 (06:30 +0000)
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/595773002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24130 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/base/macros.h

index 7a35618..cef088c 100644 (file)
@@ -230,7 +230,7 @@ struct CompileAssert {};
 // WARNING: if Dest or Source is a non-POD type, the result of the memcpy
 // is likely to surprise you.
 template <class Dest, class Source>
-inline Dest bit_cast(const Source& source) {
+V8_INLINE Dest bit_cast(Source const& source) {
   COMPILE_ASSERT(sizeof(Dest) == sizeof(Source), VerifySizesAreEqual);
 
   Dest dest;