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

Side by Side Diff: runtime/vm/isolate.cc

Issue 340443006: Add support for asynchronous event notification to the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/json.h" 9 #include "platform/json.h"
10 #include "lib/mirrors.h" 10 #include "lib/mirrors.h"
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 // inlined frames. 971 // inlined frames.
972 jsobj.AddProperty("depth", (intptr_t)0); 972 jsobj.AddProperty("depth", (intptr_t)0);
973 } 973 }
974 jsobj.AddProperty("livePorts", message_handler()->live_ports()); 974 jsobj.AddProperty("livePorts", message_handler()->live_ports());
975 jsobj.AddProperty("controlPorts", message_handler()->control_ports()); 975 jsobj.AddProperty("controlPorts", message_handler()->control_ports());
976 jsobj.AddProperty("pauseOnExit", message_handler()->pause_on_exit()); 976 jsobj.AddProperty("pauseOnExit", message_handler()->pause_on_exit());
977 977
978 // TODO(turnidge): Make the debugger support paused_on_start/exit. 978 // TODO(turnidge): Make the debugger support paused_on_start/exit.
979 if (message_handler()->paused_on_start()) { 979 if (message_handler()->paused_on_start()) {
980 ASSERT(debugger()->PauseEvent() == NULL); 980 ASSERT(debugger()->PauseEvent() == NULL);
981 DebuggerEvent pauseEvent(DebuggerEvent::kIsolateCreated); 981 DebuggerEvent pauseEvent(this, DebuggerEvent::kIsolateCreated);
982 jsobj.AddProperty("pauseEvent", &pauseEvent); 982 jsobj.AddProperty("pauseEvent", &pauseEvent);
983 } else if (message_handler()->paused_on_exit()) { 983 } else if (message_handler()->paused_on_exit()) {
984 ASSERT(debugger()->PauseEvent() == NULL); 984 ASSERT(debugger()->PauseEvent() == NULL);
985 DebuggerEvent pauseEvent(DebuggerEvent::kIsolateShutdown); 985 DebuggerEvent pauseEvent(this, DebuggerEvent::kIsolateShutdown);
986 jsobj.AddProperty("pauseEvent", &pauseEvent); 986 jsobj.AddProperty("pauseEvent", &pauseEvent);
987 } else if (debugger()->PauseEvent() != NULL) { 987 } else if (debugger()->PauseEvent() != NULL) {
988 jsobj.AddProperty("pauseEvent", debugger()->PauseEvent()); 988 jsobj.AddProperty("pauseEvent", debugger()->PauseEvent());
989 } 989 }
990 990
991 const Library& lib = 991 const Library& lib =
992 Library::Handle(object_store()->root_library()); 992 Library::Handle(object_store()->root_library());
993 jsobj.AddProperty("rootLib", lib); 993 jsobj.AddProperty("rootLib", lib);
994 994
995 timer_list().PrintTimersToJSONProperty(&jsobj); 995 timer_list().PrintTimersToJSONProperty(&jsobj);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 return func.raw(); 1252 return func.raw();
1253 } 1253 }
1254 1254
1255 1255
1256 void IsolateSpawnState::Cleanup() { 1256 void IsolateSpawnState::Cleanup() {
1257 SwitchIsolateScope switch_scope(isolate()); 1257 SwitchIsolateScope switch_scope(isolate());
1258 Dart::ShutdownIsolate(); 1258 Dart::ShutdownIsolate();
1259 } 1259 }
1260 1260
1261 } // namespace dart 1261 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698