Index: runtime/platform/globals.h |
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h |
index 7e11bb3163e548452ce260bd0fb8be1ad1214f0d..40c4b07a47aef7d4047ecf750e2cac4265bc543e 100644 |
--- a/runtime/platform/globals.h |
+++ b/runtime/platform/globals.h |
@@ -257,6 +257,15 @@ typedef simd128_value_t fpu_register_t; |
#error Automatic compiler detection failed. |
#endif |
+// DART_NOINLINE tells compiler to never inline a particular function. |
+#ifdef _MSC_VER |
+#define DART_NOINLINE __declspec(noinline) |
+#elif __GNUC__ |
+#define DART_NOINLINE __attribute__((noinline)) |
+#else |
+#error Automatic compiler detection failed. |
+#endif |
+ |
// DART_UNUSED inidicates to the compiler that a variable/typedef is expected |
// to be unused and disables the related warning. |
#ifdef __GNUC__ |
@@ -282,6 +291,7 @@ typedef simd128_value_t fpu_register_t; |
#if !defined(TARGET_ARCH_X64) |
#if !defined(TARGET_ARCH_IA32) |
#if !defined(TARGET_ARCH_ARM64) |
+#if !defined(TARGET_ARCH_DBC) |
// No target architecture specified pick the one matching the host architecture. |
#if defined(HOST_ARCH_MIPS) |
#define TARGET_ARCH_MIPS 1 |
@@ -301,6 +311,7 @@ typedef simd128_value_t fpu_register_t; |
#endif |
#endif |
#endif |
+#endif |
// Verify that host and target architectures match, we cannot |
// have a 64 bit Dart VM generating 32 bit code or vice-versa. |
@@ -337,6 +348,9 @@ typedef simd128_value_t fpu_register_t; |
#define USING_SIMULATOR 1 |
#endif |
+#elif defined(TARGET_ARCH_DBC) |
+#define USING_SIMULATOR 1 |
+ |
#else |
#error Unknown architecture. |
#endif |