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

Unified Diff: runtime/vm/isolate.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
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 413de743fc7d1ee1dbff489cc1743a69034fab3c..6003c97f9a24149bb59aaa03e11b816dc156eabc 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -117,6 +117,7 @@ bool IsolateMessageHandler::HandleMessage(Message* message) {
// TODO(turnidge): Rework collection total dart execution. This can
// overcount when other things (gc, compilation) are active.
TIMERSCOPE(time_dart_execution);
+ VMTagScope tagScope(VMTag::kScriptTagId, isolate_);
// If the message is in band we lookup the receive port to dispatch to. If
// the receive port is closed, we drop the message without deserializing it.
@@ -332,6 +333,7 @@ Isolate::Isolate()
object_id_ring_(NULL),
profiler_data_(NULL),
thread_state_(NULL),
+ vm_tag_(VMTag::kVMTagId),
next_(NULL),
REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS)
REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT)

Powered by Google App Engine
This is Rietveld 408576698