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

Unified Diff: runtime/lib/profiler.cc

Issue 237063004: Intrinsify UserTag operations on all architectures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | runtime/vm/intrinsifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/profiler.cc
diff --git a/runtime/lib/profiler.cc b/runtime/lib/profiler.cc
index 26285eece0d7c3f0de761f72162bd020e28b42e8..75bf2d1ff768f29abb15c6b59d8ff774fbb6eacf 100644
--- a/runtime/lib/profiler.cc
+++ b/runtime/lib/profiler.cc
@@ -14,6 +14,8 @@
namespace dart {
+DECLARE_FLAG(bool, trace_intrinsified_natives);
+
// dart:profiler.
DEFINE_NATIVE_ENTRY(UserTag_new, 2) {
@@ -31,12 +33,18 @@ DEFINE_NATIVE_ENTRY(UserTag_label, 1) {
DEFINE_NATIVE_ENTRY(UserTag_makeCurrent, 1) {
const UserTag& self = UserTag::CheckedHandle(arguments->NativeArgAt(0));
+ if (FLAG_trace_intrinsified_natives) {
+ OS::Print("UserTag_makeCurrent: %s\n", self.ToCString());
+ }
self.MakeActive();
return Object::null();
}
DEFINE_NATIVE_ENTRY(Profiler_getCurrentTag, 0) {
+ if (FLAG_trace_intrinsified_natives) {
+ OS::Print("Profiler_getCurrentTag\n");
+ }
return isolate->current_tag();
}
@@ -46,6 +54,9 @@ DEFINE_NATIVE_ENTRY(Profiler_clearCurrentTag, 0) {
NoGCScope no_gc;
RawUserTag* old_current = isolate->current_tag();
UserTag::ClearActive();
+ if (FLAG_trace_intrinsified_natives) {
+ OS::Print("Profiler_clearCurrentTag\n");
+ }
return old_current;
}
« no previous file with comments | « no previous file | runtime/vm/intrinsifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698