| 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 "platform/assert.h" | 8 #include "platform/assert.h" | 
| 9 #include "platform/json.h" | 9 #include "platform/json.h" | 
| 10 #include "vm/code_observers.h" | 10 #include "vm/code_observers.h" | 
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 478     } else { | 478     } else { | 
| 479       ASSERT(result.IsNull()); | 479       ASSERT(result.IsNull()); | 
| 480     } | 480     } | 
| 481   } | 481   } | 
| 482   delete message; | 482   delete message; | 
| 483   return success; | 483   return success; | 
| 484 } | 484 } | 
| 485 | 485 | 
| 486 | 486 | 
| 487 void IsolateMessageHandler::NotifyPauseOnStart() { | 487 void IsolateMessageHandler::NotifyPauseOnStart() { | 
| 488   if (Service::NeedsDebugEvents()) { | 488   if (Service::debug_stream.enabled()) { | 
| 489     StartIsolateScope start_isolate(isolate()); | 489     StartIsolateScope start_isolate(isolate()); | 
| 490     StackZone zone(I); | 490     StackZone zone(I); | 
| 491     HandleScope handle_scope(I); | 491     HandleScope handle_scope(I); | 
| 492     ServiceEvent pause_event(isolate(), ServiceEvent::kPauseStart); | 492     ServiceEvent pause_event(isolate(), ServiceEvent::kPauseStart); | 
| 493     Service::HandleEvent(&pause_event); | 493     Service::HandleEvent(&pause_event); | 
| 494   } | 494   } | 
| 495 } | 495 } | 
| 496 | 496 | 
| 497 | 497 | 
| 498 void IsolateMessageHandler::NotifyPauseOnExit() { | 498 void IsolateMessageHandler::NotifyPauseOnExit() { | 
| 499   if (Service::NeedsDebugEvents()) { | 499   if (Service::debug_stream.enabled()) { | 
| 500     StartIsolateScope start_isolate(isolate()); | 500     StartIsolateScope start_isolate(isolate()); | 
| 501     StackZone zone(I); | 501     StackZone zone(I); | 
| 502     HandleScope handle_scope(I); | 502     HandleScope handle_scope(I); | 
| 503     ServiceEvent pause_event(isolate(), ServiceEvent::kPauseExit); | 503     ServiceEvent pause_event(isolate(), ServiceEvent::kPauseExit); | 
| 504     Service::HandleEvent(&pause_event); | 504     Service::HandleEvent(&pause_event); | 
| 505   } | 505   } | 
| 506 } | 506 } | 
| 507 | 507 | 
| 508 | 508 | 
| 509 #if defined(DEBUG) | 509 #if defined(DEBUG) | 
| (...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2098                            serialized_message_, serialized_message_len_); | 2098                            serialized_message_, serialized_message_len_); | 
| 2099 } | 2099 } | 
| 2100 | 2100 | 
| 2101 | 2101 | 
| 2102 void IsolateSpawnState::Cleanup() { | 2102 void IsolateSpawnState::Cleanup() { | 
| 2103   SwitchIsolateScope switch_scope(I); | 2103   SwitchIsolateScope switch_scope(I); | 
| 2104   Dart::ShutdownIsolate(); | 2104   Dart::ShutdownIsolate(); | 
| 2105 } | 2105 } | 
| 2106 | 2106 | 
| 2107 }  // namespace dart | 2107 }  // namespace dart | 
| OLD | NEW | 
|---|