From 951ff158eb2f16dacbfb95ed833ddf8a7fed319f Mon Sep 17 00:00:00 2001 From: "srdjan@google.com" Date: Mon, 14 Oct 2013 21:47:39 +0000 Subject: [PATCH] Add back native tracing to optimized code. Tracing natives is an important part of perfromance analysis and should therefore be available in optiumized VM as well. No performance implications are expected. R=asiva@google.com Review URL: https://codereview.chromium.org//27226002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28614 260f80e4-7a28-3924-810f-c04153c831b5 --- runtime/vm/native_arguments.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/vm/native_arguments.h b/runtime/vm/native_arguments.h index 72a48333464..51944938335 100644 --- a/runtime/vm/native_arguments.h +++ b/runtime/vm/native_arguments.h @@ -48,10 +48,6 @@ class Simulator; VerifyPointersVisitor::VerifyPointers(); \ Isolate::Current()->heap()->Verify(); \ } -#define TRACE_NATIVE_CALL(format, name) \ - if (FLAG_trace_natives) { \ - OS::Print("Calling native: " format "\n", name); \ - } #define DEOPTIMIZE_ALOT \ if (FLAG_deoptimize_alot) { \ DeoptimizeAll(); \ @@ -61,11 +57,15 @@ class Simulator; #define CHECK_STACK_ALIGNMENT { } #define VERIFY_ON_TRANSITION { } -#define TRACE_NATIVE_CALL(format, name) { } #define DEOPTIMIZE_ALOT { } #endif +#define TRACE_NATIVE_CALL(format, name) \ + if (FLAG_trace_natives) { \ + OS::Print("Calling native: " format "\n", name); \ + } + // Class NativeArguments is used to access arguments passed in from // generated dart code to a runtime function or a dart library native