| Index: runtime/vm/os_fuchsia.cc
|
| diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc
|
| index 41a5d96be7d131306a25d70cab7223a74c3c25a2..65e743caee24edcfaaf7214aadbde7ff199b7eea 100644
|
| --- a/runtime/vm/os_fuchsia.cc
|
| +++ b/runtime/vm/os_fuchsia.cc
|
| @@ -18,8 +18,10 @@ namespace dart {
|
|
|
| #ifndef PRODUCT
|
|
|
| -DEFINE_FLAG(bool, generate_perf_events_symbols, false,
|
| - "Generate events symbols for profiling with perf");
|
| +DEFINE_FLAG(bool,
|
| + generate_perf_events_symbols,
|
| + false,
|
| + "Generate events symbols for profiling with perf");
|
|
|
| #endif // !PRODUCT
|
|
|
| @@ -105,7 +107,7 @@ int64_t OS::GetCurrentThreadCPUMicros() {
|
| // TODO(5411554): May need to hoist these architecture dependent code
|
| // into a architecture specific file e.g: os_ia32_fuchsia.cc
|
| intptr_t OS::ActivationFrameAlignment() {
|
| -#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \
|
| +#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \
|
| defined(TARGET_ARCH_ARM64)
|
| const int kMinimumAlignment = 16;
|
| #elif defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_DBC)
|
| @@ -124,10 +126,8 @@ intptr_t OS::ActivationFrameAlignment() {
|
|
|
|
|
| intptr_t OS::PreferredCodeAlignment() {
|
| -#if defined(TARGET_ARCH_IA32) || \
|
| - defined(TARGET_ARCH_X64) || \
|
| - defined(TARGET_ARCH_ARM64) || \
|
| - defined(TARGET_ARCH_DBC)
|
| +#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \
|
| + defined(TARGET_ARCH_ARM64) || defined(TARGET_ARCH_DBC)
|
| const int kMinimumAlignment = 32;
|
| #elif defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS)
|
| const int kMinimumAlignment = 16;
|
| @@ -163,14 +163,13 @@ uintptr_t OS::MaxRSS() {
|
|
|
|
|
| void OS::Sleep(int64_t millis) {
|
| - mx_nanosleep(
|
| - millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond);
|
| + mx_nanosleep(millis * kMicrosecondsPerMillisecond *
|
| + kNanosecondsPerMicrosecond);
|
| }
|
|
|
|
|
| void OS::SleepMicros(int64_t micros) {
|
| - mx_nanosleep(
|
| - micros * kNanosecondsPerMicrosecond);
|
| + mx_nanosleep(micros * kNanosecondsPerMicrosecond);
|
| }
|
|
|
|
|
| @@ -262,8 +261,7 @@ bool OS::StringToInt64(const char* str, int64_t* value) {
|
| if (str[0] == '-') {
|
| i = 1;
|
| }
|
| - if ((str[i] == '0') &&
|
| - (str[i + 1] == 'x' || str[i + 1] == 'X') &&
|
| + if ((str[i] == '0') && (str[i + 1] == 'x' || str[i + 1] == 'X') &&
|
| (str[i + 2] != '\0')) {
|
| base = 16;
|
| }
|
| @@ -300,8 +298,7 @@ void OS::InitOnce() {
|
| }
|
|
|
|
|
| -void OS::Shutdown() {
|
| -}
|
| +void OS::Shutdown() {}
|
|
|
|
|
| void OS::Abort() {
|
|
|