From: bmeurer@chromium.org Date: Tue, 23 Sep 2014 06:30:15 +0000 (+0000) Subject: Forcibly inline bit_cast when building with GCC. X-Git-Tag: upstream/4.7.83~6766 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54ceb48005e2e3fcedbcab6ab8341442037a2b46;p=platform%2Fupstream%2Fv8.git Forcibly inline bit_cast when building with GCC. 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 --- diff --git a/src/base/macros.h b/src/base/macros.h index 7a35618..cef088c 100644 --- a/src/base/macros.h +++ b/src/base/macros.h @@ -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 -inline Dest bit_cast(const Source& source) { +V8_INLINE Dest bit_cast(Source const& source) { COMPILE_ASSERT(sizeof(Dest) == sizeof(Source), VerifySizesAreEqual); Dest dest;