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

Unified Diff: runtime/vm/cpu_arm64.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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_arm64.h ('k') | runtime/vm/cpu_dbc.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 e612cceb6990c71c3cb30ffc07f0f175def64549..a5e30498b4e48f89338ba1b0ece49b3e97e61db5 100644
--- a/runtime/vm/cpu_arm64.cc
+++ b/runtime/vm/cpu_arm64.cc
@@ -12,8 +12,8 @@
#include "vm/simulator.h"
#if !defined(USING_SIMULATOR)
-#include <sys/syscall.h> /* NOLINT */
-#include <unistd.h> /* NOLINT */
+#include <sys/syscall.h> /* NOLINT */
+#include <unistd.h> /* NOLINT */
#endif
namespace dart {
@@ -30,18 +30,17 @@ void CPU::FlushICache(uword start, uword size) {
return;
}
- // 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)
- extern void __clear_cache(char*, char*);
- char* beg = reinterpret_cast<char*>(start);
- char* end = reinterpret_cast<char*>(start + size);
- ::__clear_cache(beg, end);
- #else
- #error FlushICache only tested/supported on Android, Fuchsia, and Linux
- #endif
+// 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)
+ extern void __clear_cache(char*, char*);
+ char* beg = reinterpret_cast<char*>(start);
+ char* end = reinterpret_cast<char*>(start + size);
+ ::__clear_cache(beg, end);
+#else
+#error FlushICache only tested/supported on Android, Fuchsia, and Linux
+#endif
#endif
}
@@ -50,9 +49,9 @@ void CPU::FlushICache(uword start, uword size) {
const char* CPU::Id() {
return
#if defined(USING_SIMULATOR)
- "sim"
+ "sim"
#endif // !defined(HOST_ARCH_ARM64)
- "arm64";
+ "arm64";
}
« no previous file with comments | « runtime/vm/cpu_arm64.h ('k') | runtime/vm/cpu_dbc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698