| 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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 ExceptionPauseInfoToServiceEnum(debugger()->GetExceptionPauseInfo())); | 1900 ExceptionPauseInfoToServiceEnum(debugger()->GetExceptionPauseInfo())); |
| 1901 } | 1901 } |
| 1902 | 1902 |
| 1903 const Library& lib = | 1903 const Library& lib = |
| 1904 Library::Handle(object_store()->root_library()); | 1904 Library::Handle(object_store()->root_library()); |
| 1905 if (!lib.IsNull()) { | 1905 if (!lib.IsNull()) { |
| 1906 jsobj.AddProperty("rootLib", lib); | 1906 jsobj.AddProperty("rootLib", lib); |
| 1907 } | 1907 } |
| 1908 | 1908 |
| 1909 { | 1909 { |
| 1910 JSONObject objectStore(&jsobj, "_objectStore"); |
| 1911 object_store()->PrintToJSONObject(&objectStore); |
| 1912 } |
| 1913 |
| 1914 { |
| 1910 JSONObject tagCounters(&jsobj, "_tagCounters"); | 1915 JSONObject tagCounters(&jsobj, "_tagCounters"); |
| 1911 vm_tag_counters()->PrintToJSONObject(&tagCounters); | 1916 vm_tag_counters()->PrintToJSONObject(&tagCounters); |
| 1912 } | 1917 } |
| 1913 if (Thread::Current()->sticky_error() != Object::null()) { | 1918 if (Thread::Current()->sticky_error() != Object::null()) { |
| 1914 Error& error = Error::Handle(Thread::Current()->sticky_error()); | 1919 Error& error = Error::Handle(Thread::Current()->sticky_error()); |
| 1915 ASSERT(!error.IsNull()); | 1920 ASSERT(!error.IsNull()); |
| 1916 jsobj.AddProperty("error", error, false); | 1921 jsobj.AddProperty("error", error, false); |
| 1917 } else if (sticky_error() != Object::null()) { | 1922 } else if (sticky_error() != Object::null()) { |
| 1918 Error& error = Error::Handle(sticky_error()); | 1923 Error& error = Error::Handle(sticky_error()); |
| 1919 ASSERT(!error.IsNull()); | 1924 ASSERT(!error.IsNull()); |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2842 void IsolateSpawnState::DecrementSpawnCount() { | 2847 void IsolateSpawnState::DecrementSpawnCount() { |
| 2843 ASSERT(spawn_count_monitor_ != NULL); | 2848 ASSERT(spawn_count_monitor_ != NULL); |
| 2844 ASSERT(spawn_count_ != NULL); | 2849 ASSERT(spawn_count_ != NULL); |
| 2845 MonitorLocker ml(spawn_count_monitor_); | 2850 MonitorLocker ml(spawn_count_monitor_); |
| 2846 ASSERT(*spawn_count_ > 0); | 2851 ASSERT(*spawn_count_ > 0); |
| 2847 *spawn_count_ = *spawn_count_ - 1; | 2852 *spawn_count_ = *spawn_count_ - 1; |
| 2848 ml.Notify(); | 2853 ml.Notify(); |
| 2849 } | 2854 } |
| 2850 | 2855 |
| 2851 } // namespace dart | 2856 } // namespace dart |
| OLD | NEW |