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

Unified Diff: runtime/vm/cpuid.cc

Issue 2750843003: Rename TARGET_OS_* to HOST_OS_*. (Closed)
Patch Set: DEPS Created 3 years, 9 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 | « runtime/vm/cpuid.h ('k') | runtime/vm/cpuinfo_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpuid.cc
diff --git a/runtime/vm/cpuid.cc b/runtime/vm/cpuid.cc
index 576687ec0165d4a11f9353438f320d59648a74e5..4800c5be72d049be6ccbecd7f3faa697d063b21b 100644
--- a/runtime/vm/cpuid.cc
+++ b/runtime/vm/cpuid.cc
@@ -3,12 +3,12 @@
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h"
-#if !defined(TARGET_OS_MACOS)
+#if !defined(HOST_OS_MACOS)
#include "vm/cpuid.h"
#if defined(HOST_ARCH_IA32) || defined(HOST_ARCH_X64)
// GetCpuId() on Windows, __get_cpuid() on Linux
-#if defined(TARGET_OS_WINDOWS)
+#if defined(HOST_OS_WINDOWS)
#include <intrin.h> // NOLINT
#else
#include <cpuid.h> // NOLINT
@@ -25,7 +25,7 @@ const char* CpuId::brand_string_ = NULL;
#if defined(HOST_ARCH_IA32) || defined(HOST_ARCH_X64)
void CpuId::GetCpuId(int32_t level, uint32_t info[4]) {
-#if defined(TARGET_OS_WINDOWS)
+#if defined(HOST_OS_WINDOWS)
// The documentation for __cpuid is at:
// http://msdn.microsoft.com/en-us/library/hskdteyh(v=vs.90).aspx
__cpuid(reinterpret_cast<int*>(info), level);
@@ -114,4 +114,4 @@ const char* CpuId::field(CpuInfoIndices idx) {
#endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
} // namespace dart
-#endif // !defined(TARGET_OS_MACOS)
+#endif // !defined(HOST_OS_MACOS)
« no previous file with comments | « runtime/vm/cpuid.h ('k') | runtime/vm/cpuinfo_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698