| Index: runtime/vm/dart_api_state.h
|
| diff --git a/runtime/vm/dart_api_state.h b/runtime/vm/dart_api_state.h
|
| index ec005b61ca1008eef0e4e343c4c78e06344c273c..3c7d3165adb4f23f98945c5165af4b371623f7b2 100644
|
| --- a/runtime/vm/dart_api_state.h
|
| +++ b/runtime/vm/dart_api_state.h
|
| @@ -24,9 +24,6 @@
|
|
|
| namespace dart {
|
|
|
| -DECLARE_DEBUG_FLAG(bool, trace_zones);
|
| -DECLARE_DEBUG_FLAG(bool, trace_handles);
|
| -
|
| // Implementation of Zone support for very fast allocation of small chunks
|
| // of memory. The chunks cannot be deallocated individually, but instead
|
| // zones support deallocating all chunks in one fast operation when the
|
| @@ -41,13 +38,11 @@ class ApiZone {
|
| if (thread != NULL) {
|
| thread->set_zone(&zone_);
|
| }
|
| -#ifdef DEBUG
|
| if (FLAG_trace_zones) {
|
| OS::PrintErr("*** Starting a new Api zone 0x%" Px "(0x%" Px ")\n",
|
| reinterpret_cast<intptr_t>(this),
|
| reinterpret_cast<intptr_t>(&zone_));
|
| }
|
| -#endif
|
| }
|
|
|
| // Delete all memory associated with the zone.
|
| @@ -62,13 +57,11 @@ class ApiZone {
|
| if ((thread != NULL) && (thread->zone() == &zone_)) {
|
| thread->set_zone(zone_.previous_);
|
| }
|
| -#ifdef DEBUG
|
| if (FLAG_trace_zones) {
|
| OS::PrintErr("*** Deleting Api zone 0x%" Px "(0x%" Px ")\n",
|
| reinterpret_cast<intptr_t>(this),
|
| reinterpret_cast<intptr_t>(&zone_));
|
| }
|
| -#endif
|
| }
|
|
|
| // Allocates an array sized to hold 'len' elements of type
|
| @@ -360,15 +353,12 @@ class LocalHandles : Handles<kLocalHandleSizeInWords,
|
| LocalHandles() : Handles<kLocalHandleSizeInWords,
|
| kLocalHandlesPerChunk,
|
| kOffsetOfRawPtrInLocalHandle>() {
|
| -#ifdef DEBUG
|
| if (FLAG_trace_handles) {
|
| OS::PrintErr("*** Starting a new Local handle block 0x%" Px "\n",
|
| reinterpret_cast<intptr_t>(this));
|
| }
|
| -#endif
|
| }
|
| ~LocalHandles() {
|
| -#ifdef DEBUG
|
| if (FLAG_trace_handles) {
|
| OS::PrintErr("*** Handle Counts for 0x(%" Px "):Scoped = %d\n",
|
| reinterpret_cast<intptr_t>(this),
|
| @@ -376,7 +366,6 @@ class LocalHandles : Handles<kLocalHandleSizeInWords,
|
| OS::PrintErr("*** Deleting Local handle block 0x%" Px "\n",
|
| reinterpret_cast<intptr_t>(this));
|
| }
|
| -#endif
|
| }
|
|
|
|
|
| @@ -429,16 +418,13 @@ class PersistentHandles : Handles<kPersistentHandleSizeInWords,
|
| kPersistentHandlesPerChunk,
|
| kOffsetOfRawPtrInPersistentHandle>(),
|
| free_list_(NULL) {
|
| -#ifdef DEBUG
|
| if (FLAG_trace_handles) {
|
| OS::PrintErr("*** Starting a new Persistent handle block 0x%" Px "\n",
|
| reinterpret_cast<intptr_t>(this));
|
| }
|
| -#endif
|
| }
|
| ~PersistentHandles() {
|
| free_list_ = NULL;
|
| -#ifdef DEBUG
|
| if (FLAG_trace_handles) {
|
| OS::PrintErr("*** Handle Counts for 0x(%" Px "):Scoped = %d\n",
|
| reinterpret_cast<intptr_t>(this),
|
| @@ -446,7 +432,6 @@ class PersistentHandles : Handles<kPersistentHandleSizeInWords,
|
| OS::PrintErr("*** Deleting Persistent handle block 0x%" Px "\n",
|
| reinterpret_cast<intptr_t>(this));
|
| }
|
| -#endif
|
| }
|
|
|
| // Accessors.
|
|
|