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

Unified Diff: runtime/vm/cpu_arm64.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/cpu_arm.cc ('k') | runtime/vm/cpuid.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpu_arm64.cc
diff --git a/runtime/vm/cpu_arm64.cc b/runtime/vm/cpu_arm64.cc
index a5e30498b4e48f89338ba1b0ece49b3e97e61db5..10a0404c3fd9565d0c83ed1a13fd8e438bc14df3 100644
--- a/runtime/vm/cpu_arm64.cc
+++ b/runtime/vm/cpu_arm64.cc
@@ -19,12 +19,12 @@
namespace dart {
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;
@@ -32,8 +32,8 @@ void CPU::FlushICache(uword start, uword size) {
// ARM recommends using the gcc intrinsic __clear_cache on Linux and Android.
// blogs.arm.com/software-enablement/141-caches-and-self-modifying-code/
-#if defined(TARGET_OS_ANDROID) || defined(TARGET_OS_FUCHSIA) || \
- defined(TARGET_OS_LINUX)
+#if defined(HOST_OS_ANDROID) || defined(HOST_OS_FUCHSIA) || \
+ defined(HOST_OS_LINUX)
extern void __clear_cache(char*, char*);
char* beg = reinterpret_cast<char*>(start);
char* end = reinterpret_cast<char*>(start + size);
« no previous file with comments | « runtime/vm/cpu_arm.cc ('k') | runtime/vm/cpuid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698