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

Unified Diff: runtime/vm/bootstrap_natives.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/bootstrap_natives.h ('k') | runtime/vm/branch_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap_natives.cc
diff --git a/runtime/vm/bootstrap_natives.cc b/runtime/vm/bootstrap_natives.cc
index 7e1ea342fa3fbb7b394341443864725ee5645fae..ef4b92f9284be2bba46bb92880c6a709512314cb 100644
--- a/runtime/vm/bootstrap_natives.cc
+++ b/runtime/vm/bootstrap_natives.cc
@@ -16,7 +16,7 @@ namespace dart {
// Helper macros for declaring and defining native entries.
#define REGISTER_NATIVE_ENTRY(name, count) \
- { ""#name, BootstrapNatives::DN_##name, count },
+ {"" #name, BootstrapNatives::DN_##name, count},
// List all native functions implemented in the vm or core bootstrap dart
@@ -26,10 +26,9 @@ static struct NativeEntries {
const char* name_;
Dart_NativeFunction function_;
int argument_count_;
-} BootStrapEntries[] = {
- BOOTSTRAP_NATIVE_LIST(REGISTER_NATIVE_ENTRY)
+} BootStrapEntries[] = {BOOTSTRAP_NATIVE_LIST(REGISTER_NATIVE_ENTRY)
#ifndef PRODUCT
- MIRRORS_BOOTSTRAP_NATIVE_LIST(REGISTER_NATIVE_ENTRY)
+ MIRRORS_BOOTSTRAP_NATIVE_LIST(REGISTER_NATIVE_ENTRY)
#endif // !PRODUCT
};
@@ -76,8 +75,7 @@ void Bootstrap::SetupNativeResolver() {
reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup);
Dart_NativeEntrySymbol symbol_resolver =
- reinterpret_cast<Dart_NativeEntrySymbol>(
- BootstrapNatives::Symbol);
+ reinterpret_cast<Dart_NativeEntrySymbol>(BootstrapNatives::Symbol);
library = Library::AsyncLibrary();
ASSERT(!library.IsNull());
@@ -119,11 +117,12 @@ void Bootstrap::SetupNativeResolver() {
library.set_native_entry_resolver(resolver);
library.set_native_entry_symbol_resolver(symbol_resolver);
-NOT_IN_PRODUCT(
+#if !defined(PRODUCT)
library = Library::MirrorsLibrary();
ASSERT(!library.IsNull());
library.set_native_entry_resolver(resolver);
- library.set_native_entry_symbol_resolver(symbol_resolver));
+ library.set_native_entry_symbol_resolver(symbol_resolver);
+#endif // !defined(PRODUCT)
library = Library::ProfilerLibrary();
ASSERT(!library.IsNull());
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/branch_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698