Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: runtime/platform/globals.h

Issue 12340086: Force WriteByte to be inlined (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/datastream.h » ('j') | runtime/vm/datastream.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/globals.h
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h
index 4c5d053bb4de8bd9e034c9784b7a2de21d87af21..3827c54c8a6f8aeac8cbcf5cbcae47b0db78c67d 100644
--- a/runtime/platform/globals.h
+++ b/runtime/platform/globals.h
@@ -271,6 +271,11 @@ public: \
private: \
void* operator new(size_t size);
+#ifdef _MSC_VER
Ivan Posva 2013/02/26 22:23:49 Please move this up next to the other toolchain de
+#define DART_FORCE_INLINE __forceinline
+#else
Ivan Posva 2013/02/26 22:23:49 You should not assume gcc if the compiler is not M
+#define DART_FORCE_INLINE inline __attribute__((always_inline))
+#endif
// The USE(x) template is used to silence C++ compiler warnings issued
// for unused variables.
« no previous file with comments | « no previous file | runtime/vm/datastream.h » ('j') | runtime/vm/datastream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698