| 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 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 | 1632 |
| 1633 // Clean up debugger resources. | 1633 // Clean up debugger resources. |
| 1634 if (FLAG_support_debugger) { | 1634 if (FLAG_support_debugger) { |
| 1635 debugger()->Shutdown(); | 1635 debugger()->Shutdown(); |
| 1636 } | 1636 } |
| 1637 | 1637 |
| 1638 | 1638 |
| 1639 // Close all the ports owned by this isolate. | 1639 // Close all the ports owned by this isolate. |
| 1640 PortMap::ClosePorts(message_handler()); | 1640 PortMap::ClosePorts(message_handler()); |
| 1641 | 1641 |
| 1642 // Fail fast if anybody tries to post any more messsages to this isolate. | 1642 // Fail fast if anybody tries to post any more messages to this isolate. |
| 1643 delete message_handler(); | 1643 delete message_handler(); |
| 1644 set_message_handler(NULL); | 1644 set_message_handler(NULL); |
| 1645 if (FLAG_support_timeline) { | 1645 if (FLAG_support_timeline) { |
| 1646 // Before analyzing the isolate's timeline blocks- reclaim all cached | 1646 // Before analyzing the isolate's timeline blocks- reclaim all cached |
| 1647 // blocks. | 1647 // blocks. |
| 1648 Timeline::ReclaimCachedBlocksFromThreads(); | 1648 Timeline::ReclaimCachedBlocksFromThreads(); |
| 1649 } | 1649 } |
| 1650 | 1650 |
| 1651 // Dump all timing data for the isolate. | 1651 // Dump all timing data for the isolate. |
| 1652 #ifndef PRODUCT | 1652 #ifndef PRODUCT |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2946 void IsolateSpawnState::DecrementSpawnCount() { | 2946 void IsolateSpawnState::DecrementSpawnCount() { |
| 2947 ASSERT(spawn_count_monitor_ != NULL); | 2947 ASSERT(spawn_count_monitor_ != NULL); |
| 2948 ASSERT(spawn_count_ != NULL); | 2948 ASSERT(spawn_count_ != NULL); |
| 2949 MonitorLocker ml(spawn_count_monitor_); | 2949 MonitorLocker ml(spawn_count_monitor_); |
| 2950 ASSERT(*spawn_count_ > 0); | 2950 ASSERT(*spawn_count_ > 0); |
| 2951 *spawn_count_ = *spawn_count_ - 1; | 2951 *spawn_count_ = *spawn_count_ - 1; |
| 2952 ml.Notify(); | 2952 ml.Notify(); |
| 2953 } | 2953 } |
| 2954 | 2954 |
| 2955 } // namespace dart | 2955 } // namespace dart |
| OLD | NEW |