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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 195733009: Basic tag infrastructure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/compiler.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 7ea19a59d0fa1b8d8f65ba1984c9849794da8a42..ccbb3ef7c132c25f84556871336829cb6ce06112 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -30,6 +30,7 @@
#include "vm/service.h"
#include "vm/stack_frame.h"
#include "vm/symbols.h"
+#include "vm/tags.h"
#include "vm/timer.h"
#include "vm/unicode.h"
#include "vm/verifier.h"
@@ -3270,6 +3271,7 @@ DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target,
// TODO(turnidge): This is a bit simplistic. It overcounts when
// other operations (gc, compilation) are active.
TIMERSCOPE(isolate, time_dart_execution);
+ VMTagScope tagScope(isolate, VMTag::kScriptTagId);
const String& function_name = Api::UnwrapStringHandle(isolate, name);
if (function_name.IsNull()) {
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698