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

Unified Diff: runtime/vm/cpu.h

Issue 120723003: Refactors CPU feature detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Cleanup Created 7 years 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
Index: runtime/vm/cpu.h
===================================================================
--- runtime/vm/cpu.h (revision 31402)
+++ runtime/vm/cpu.h (working copy)
@@ -20,6 +20,19 @@
static const char* Id();
};
+
} // namespace dart
+#if defined(TARGET_ARCH_IA32)
+#include "vm/cpu_ia32.h"
+#elif defined(TARGET_ARCH_X64)
+#include "vm/cpu_x64.h"
+#elif defined(TARGET_ARCH_ARM)
+#include "vm/cpu_arm.h"
+#elif defined(TARGET_ARCH_MIPS)
+#include "vm/cpu_mips.h"
+#else
+#error Unknown architecture.
+#endif
+
#endif // VM_CPU_H_
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/cpu_arm.h » ('j') | runtime/vm/cpu_ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698