| OLD | NEW | 
|---|
| 1 // Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2015, 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/service_event.h" | 5 #include "vm/service_event.h" | 
| 6 | 6 | 
| 7 #include "vm/message_handler.h" | 7 #include "vm/message_handler.h" | 
| 8 | 8 | 
| 9 namespace dart { | 9 namespace dart { | 
| 10 | 10 | 
|  | 11 #ifndef PRODUCT | 
|  | 12 | 
| 11 // Translate from the legacy DebugEvent to a ServiceEvent. | 13 // Translate from the legacy DebugEvent to a ServiceEvent. | 
| 12 static ServiceEvent::EventKind TranslateEventKind( | 14 static ServiceEvent::EventKind TranslateEventKind( | 
| 13     DebuggerEvent::EventType kind) { | 15     DebuggerEvent::EventType kind) { | 
| 14     switch (kind) { | 16     switch (kind) { | 
| 15       case DebuggerEvent::kIsolateCreated: | 17       case DebuggerEvent::kIsolateCreated: | 
| 16         return ServiceEvent::kIsolateStart; | 18         return ServiceEvent::kIsolateStart; | 
| 17 | 19 | 
| 18       case DebuggerEvent::kIsolateShutdown: | 20       case DebuggerEvent::kIsolateShutdown: | 
| 19         return ServiceEvent::kIsolateExit; | 21         return ServiceEvent::kIsolateExit; | 
| 20 | 22 | 
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 264   } | 266   } | 
| 265   if (kind() == kVMUpdate) { | 267   if (kind() == kVMUpdate) { | 
| 266     jsobj->AddPropertyVM("vm"); | 268     jsobj->AddPropertyVM("vm"); | 
| 267   } else { | 269   } else { | 
| 268     jsobj->AddProperty("isolate", isolate()); | 270     jsobj->AddProperty("isolate", isolate()); | 
| 269   } | 271   } | 
| 270   ASSERT(timestamp_ != -1); | 272   ASSERT(timestamp_ != -1); | 
| 271   jsobj->AddPropertyTimeMillis("timestamp", timestamp_); | 273   jsobj->AddPropertyTimeMillis("timestamp", timestamp_); | 
| 272 } | 274 } | 
| 273 | 275 | 
|  | 276 #endif  // !PRODUCT | 
|  | 277 | 
| 274 }  // namespace dart | 278 }  // namespace dart | 
| OLD | NEW | 
|---|