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

Unified Diff: runtime/vm/cpu_arm.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/atomic_win.h ('k') | runtime/vm/cpu_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpu_arm.cc
diff --git a/runtime/vm/cpu_arm.cc b/runtime/vm/cpu_arm.cc
index e5a1dd9bb77c618cefa3db058a7b73dd64a35e46..f4d72d82f0fb6637c71facdffb9926b3b3f7cdef 100644
--- a/runtime/vm/cpu_arm.cc
+++ b/runtime/vm/cpu_arm.cc
@@ -90,12 +90,12 @@ DEFINE_FLAG(bool, sim_use_hardfp, true, "Use the softfp ABI.");
#endif
void CPU::FlushICache(uword start, uword size) {
-#if TARGET_OS_IOS
+#if HOST_OS_IOS
// Precompilation never patches code so there should be no I cache flushes.
UNREACHABLE();
#endif
-#if !defined(USING_SIMULATOR) && !TARGET_OS_IOS
+#if !defined(USING_SIMULATOR) && !HOST_OS_IOS
// Nothing to do. Flushing no instructions.
if (size == 0) {
return;
@@ -140,7 +140,7 @@ bool HostCPUFeatures::initialized_ = false;
#if !defined(USING_SIMULATOR)
-#if TARGET_OS_IOS
+#if HOST_OS_IOS
void HostCPUFeatures::InitOnce() {
// TODO(24743): Actually check the CPU features and fail if we're missing
// something assumed in a precompiled snapshot.
@@ -158,7 +158,7 @@ void HostCPUFeatures::InitOnce() {
initialized_ = true;
#endif
}
-#else // TARGET_OS_IOS
+#else // HOST_OS_IOS
void HostCPUFeatures::InitOnce() {
bool is_arm64 = false;
CpuInfo::InitOnce();
@@ -238,7 +238,7 @@ void HostCPUFeatures::InitOnce() {
initialized_ = true;
#endif
}
-#endif // TARGET_OS_IOS
+#endif // HOST_OS_IOS
void HostCPUFeatures::Cleanup() {
DEBUG_ASSERT(initialized_);
« no previous file with comments | « runtime/vm/atomic_win.h ('k') | runtime/vm/cpu_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698