Chromium Code Reviews| Index: runtime/platform/globals.h |
| diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h |
| index 4c5d053bb4de8bd9e034c9784b7a2de21d87af21..dff9d96a7dbf5aa7f5023c84b0654df4c5b774d0 100644 |
| --- a/runtime/platform/globals.h |
| +++ b/runtime/platform/globals.h |
| @@ -124,6 +124,19 @@ typedef struct { |
| #error Architecture was not detected as supported by Dart. |
| #endif |
| +// DART_FORCE_INLINE strongly hints to the compiler that a function should |
| +// be inlined. Your function is not guaranteed to be inlined but this is |
| +// stronger than just using "inline". |
| +// See: http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx for an |
| +// explanation of some the cases when a function can never be inlined. |
| +#ifdef _MSC_VER |
| +#define DART_FORCE_INLINE __forceinline |
| +#elif __GNUC__ |
| +#define DART_FORCE_INLINE inline __attribute__((always_inline)) |
| +#else |
| +#error Automatic compiler detection failed. |
| +#endif |
| + |
| #if !defined(TARGET_ARCH_MIPS) |
| #if !defined(TARGET_ARCH_ARM) |
| #if !defined(TARGET_ARCH_X64) |
| @@ -159,7 +172,6 @@ typedef struct { |
| #endif |
| #endif |
| - |
|
Ivan Posva
2013/02/26 22:59:15
Line disappeared.
|
| // Short form printf format specifiers |
| #define Pd PRIdPTR |
| #define Pu PRIuPTR |