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

Unified Diff: runtime/vm/native_entry.h

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/native_arguments.h ('k') | runtime/vm/native_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_entry.h
diff --git a/runtime/vm/native_entry.h b/runtime/vm/native_entry.h
index 72531fad9e1aa52578c0cc6931802e269177293f..9b8f6e341e68eceba17ff5802570c6b79a3b6335 100644
--- a/runtime/vm/native_entry.h
+++ b/runtime/vm/native_entry.h
@@ -33,15 +33,12 @@ typedef void (*NativeFunction)(NativeArguments* arguments);
ASSERT(retval->IsDartInstance()); \
arguments->SetReturnUnsafe(retval);
#else
-#define SET_NATIVE_RETVAL(arguments, value) \
- arguments->SetReturnUnsafe(value);
+#define SET_NATIVE_RETVAL(arguments, value) arguments->SetReturnUnsafe(value);
#endif
#define DEFINE_NATIVE_ENTRY(name, argument_count) \
- static RawObject* DN_Helper##name(Isolate* isolate, \
- Thread* thread, \
- Zone* zone, \
- NativeArguments* arguments); \
+ static RawObject* DN_Helper##name(Isolate* isolate, Thread* thread, \
+ Zone* zone, NativeArguments* arguments); \
void NATIVE_ENTRY_FUNCTION(name)(Dart_NativeArguments args) { \
CHECK_STACK_ALIGNMENT; \
VERIFY_ON_TRANSITION; \
@@ -49,26 +46,22 @@ typedef void (*NativeFunction)(NativeArguments* arguments);
/* Tell MemorySanitizer 'arguments' is initialized by generated code. */ \
MSAN_UNPOISON(arguments, sizeof(*arguments)); \
ASSERT(arguments->NativeArgCount() == argument_count); \
- TRACE_NATIVE_CALL("%s", ""#name); \
+ TRACE_NATIVE_CALL("%s", "" #name); \
{ \
Thread* thread = arguments->thread(); \
ASSERT(thread == Thread::Current()); \
Isolate* isolate = thread->isolate(); \
TransitionGeneratedToVM transition(thread); \
StackZone zone(thread); \
- SET_NATIVE_RETVAL(arguments, \
- DN_Helper##name(isolate, \
- thread, \
- zone.GetZone(), \
- arguments)); \
+ SET_NATIVE_RETVAL( \
+ arguments, \
+ DN_Helper##name(isolate, thread, zone.GetZone(), arguments)); \
DEOPTIMIZE_ALOT; \
} \
VERIFY_ON_TRANSITION; \
} \
- static RawObject* DN_Helper##name(Isolate* isolate, \
- Thread* thread, \
- Zone* zone, \
- NativeArguments* arguments)
+ static RawObject* DN_Helper##name(Isolate* isolate, Thread* thread, \
+ Zone* zone, NativeArguments* arguments)
// Helper that throws an argument exception.
@@ -118,7 +111,7 @@ class NativeEntry : public AllStatic {
static void NativeCallWrapper(Dart_NativeArguments args,
Dart_NativeFunction func);
- // DBC does not support lazy native call linking.
+// DBC does not support lazy native call linking.
#if !defined(TARGET_ARCH_DBC)
static uword LinkNativeCallEntry();
static void LinkNativeCall(Dart_NativeArguments args);
« no previous file with comments | « runtime/vm/native_arguments.h ('k') | runtime/vm/native_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698