OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/isolate.h" | 5 #include "vm/isolate.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/text_buffer.h" | 10 #include "platform/text_buffer.h" |
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1892 ExceptionPauseInfoToServiceEnum(debugger()->GetExceptionPauseInfo())); | 1892 ExceptionPauseInfoToServiceEnum(debugger()->GetExceptionPauseInfo())); |
1893 } | 1893 } |
1894 | 1894 |
1895 const Library& lib = | 1895 const Library& lib = |
1896 Library::Handle(object_store()->root_library()); | 1896 Library::Handle(object_store()->root_library()); |
1897 if (!lib.IsNull()) { | 1897 if (!lib.IsNull()) { |
1898 jsobj.AddProperty("rootLib", lib); | 1898 jsobj.AddProperty("rootLib", lib); |
1899 } | 1899 } |
1900 | 1900 |
1901 { | 1901 { |
| 1902 JSONObject objectStore(&jsobj, "_objectStore"); |
| 1903 object_store()->PrintToJSONObject(&objectStore); |
| 1904 } |
| 1905 |
| 1906 { |
1902 JSONObject tagCounters(&jsobj, "_tagCounters"); | 1907 JSONObject tagCounters(&jsobj, "_tagCounters"); |
1903 vm_tag_counters()->PrintToJSONObject(&tagCounters); | 1908 vm_tag_counters()->PrintToJSONObject(&tagCounters); |
1904 } | 1909 } |
1905 if (Thread::Current()->sticky_error() != Object::null()) { | 1910 if (Thread::Current()->sticky_error() != Object::null()) { |
1906 Error& error = Error::Handle(Thread::Current()->sticky_error()); | 1911 Error& error = Error::Handle(Thread::Current()->sticky_error()); |
1907 ASSERT(!error.IsNull()); | 1912 ASSERT(!error.IsNull()); |
1908 jsobj.AddProperty("error", error, false); | 1913 jsobj.AddProperty("error", error, false); |
1909 } else if (sticky_error() != Object::null()) { | 1914 } else if (sticky_error() != Object::null()) { |
1910 Error& error = Error::Handle(sticky_error()); | 1915 Error& error = Error::Handle(sticky_error()); |
1911 ASSERT(!error.IsNull()); | 1916 ASSERT(!error.IsNull()); |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2790 void IsolateSpawnState::DecrementSpawnCount() { | 2795 void IsolateSpawnState::DecrementSpawnCount() { |
2791 ASSERT(spawn_count_monitor_ != NULL); | 2796 ASSERT(spawn_count_monitor_ != NULL); |
2792 ASSERT(spawn_count_ != NULL); | 2797 ASSERT(spawn_count_ != NULL); |
2793 MonitorLocker ml(spawn_count_monitor_); | 2798 MonitorLocker ml(spawn_count_monitor_); |
2794 ASSERT(*spawn_count_ > 0); | 2799 ASSERT(*spawn_count_ > 0); |
2795 *spawn_count_ = *spawn_count_ - 1; | 2800 *spawn_count_ = *spawn_count_ - 1; |
2796 ml.Notify(); | 2801 ml.Notify(); |
2797 } | 2802 } |
2798 | 2803 |
2799 } // namespace dart | 2804 } // namespace dart |
OLD | NEW |