From 54ceb48005e2e3fcedbcab6ab8341442037a2b46 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Tue, 23 Sep 2014 06:30:15 +0000 Subject: [PATCH] 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 --- src/base/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4