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

Unified Diff: runtime/vm/native_entry.h

Issue 2818253002: Make --trace-natives respect the isolate filter. (Closed)
Patch Set: Created 3 years, 8 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 | « 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 187472f4a6372f4d1e2e448cb3cc60a582f3c3ce..5f6984e794e16848926e02682e96852ef37e1d19 100644
--- a/runtime/vm/native_entry.h
+++ b/runtime/vm/native_entry.h
@@ -11,6 +11,7 @@
#include "vm/assembler.h"
#include "vm/code_generator.h"
#include "vm/exceptions.h"
+#include "vm/log.h"
#include "vm/native_arguments.h"
#include "vm/verifier.h"
@@ -36,6 +37,16 @@ class String;
typedef void (*NativeFunction)(NativeArguments* arguments);
+#ifndef PRODUCT
+#define TRACE_NATIVE_CALL(format, name) \
+ if (FLAG_trace_natives) { \
+ THR_Print("Calling native: " format "\n", name); \
+ }
+#else
+#define TRACE_NATIVE_CALL(format, name) \
+ do { \
+ } while (0)
+#endif
#define NATIVE_ENTRY_FUNCTION(name) BootstrapNatives::DN_##name
« 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