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

Unified Diff: runtime/vm/native_arguments.h

Issue 1705163003: Move native entry argument exception throwing code out of line (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | runtime/vm/native_entry.h » ('j') | runtime/vm/native_entry.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_arguments.h
diff --git a/runtime/vm/native_arguments.h b/runtime/vm/native_arguments.h
index ded8b85ec0cafa4317595184565cce3a0f1f6807..1763c8c67ee5427b713ed28b046b812320458b90 100644
--- a/runtime/vm/native_arguments.h
+++ b/runtime/vm/native_arguments.h
@@ -62,11 +62,15 @@ class Thread;
#endif
+#ifndef PRODUCT
#define TRACE_NATIVE_CALL(format, name) \
if (FLAG_trace_natives) { \
OS::Print("Calling native: " format "\n", name); \
}
-
+#else
+#define TRACE_NATIVE_CALL(format, name) \
+ do { } while (0)
+#endif
// Class NativeArguments is used to access arguments passed in from
// generated dart code to a runtime function or a dart library native
« no previous file with comments | « no previous file | runtime/vm/native_entry.h » ('j') | runtime/vm/native_entry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698