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

Unified Diff: vm/handles.h

Issue 11879005: Added code to trace zone and handles creation/deletion under flags (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 | « vm/dart_api_state.h ('k') | vm/handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/handles.h
===================================================================
--- vm/handles.h (revision 16932)
+++ vm/handles.h (working copy)
@@ -7,6 +7,7 @@
#include "vm/allocation.h"
#include "vm/flags.h"
+#include "vm/os.h"
namespace dart {
@@ -59,6 +60,7 @@
class ObjectPointerVisitor;
DECLARE_FLAG(bool, verify_handles);
+DECLARE_DEBUG_FLAG(bool, trace_handles);
class HandleVisitor {
public:
@@ -254,7 +256,14 @@
VMHandles() : Handles<kVMHandleSizeInWords,
kVMHandlesPerChunk,
- kOffsetOfRawPtr>() { }
+ kOffsetOfRawPtr>() {
+#ifdef DEBUG
+ if (FLAG_trace_handles) {
+ OS::PrintErr("*** Starting a new VM handle block 0x%"Px"\n",
+ reinterpret_cast<intptr_t>(this));
+ }
+#endif
+ }
~VMHandles();
// Visit all object pointers stored in the various handles.
« no previous file with comments | « vm/dart_api_state.h ('k') | vm/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698