| 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 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 | 1519 |
| 1520 // Then, proceed with low-level teardown. | 1520 // Then, proceed with low-level teardown. |
| 1521 { | 1521 { |
| 1522 // Ensure we have a zone and handle scope so that we can call VM functions, | 1522 // Ensure we have a zone and handle scope so that we can call VM functions, |
| 1523 // but we no longer allocate new heap objects. | 1523 // but we no longer allocate new heap objects. |
| 1524 StackZone stack_zone(this); | 1524 StackZone stack_zone(this); |
| 1525 HandleScope handle_scope(this); | 1525 HandleScope handle_scope(this); |
| 1526 NoSafepointScope no_safepoint_scope; | 1526 NoSafepointScope no_safepoint_scope; |
| 1527 | 1527 |
| 1528 if (compiler_stats_ != NULL) { | 1528 if (compiler_stats_ != NULL) { |
| 1529 compiler_stats()->Print(); | 1529 OS::Print("%s", compiler_stats()->PrintToZone()); |
| 1530 } | 1530 } |
| 1531 | 1531 |
| 1532 // Notify exit listeners that this isolate is shutting down. | 1532 // Notify exit listeners that this isolate is shutting down. |
| 1533 if (object_store() != NULL) { | 1533 if (object_store() != NULL) { |
| 1534 NotifyExitListeners(); | 1534 NotifyExitListeners(); |
| 1535 } | 1535 } |
| 1536 | 1536 |
| 1537 // Clean up debugger resources. | 1537 // Clean up debugger resources. |
| 1538 debugger()->Shutdown(); | 1538 debugger()->Shutdown(); |
| 1539 | 1539 |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2352 serialized_message_, serialized_message_len_); | 2352 serialized_message_, serialized_message_len_); |
| 2353 } | 2353 } |
| 2354 | 2354 |
| 2355 | 2355 |
| 2356 void IsolateSpawnState::Cleanup() { | 2356 void IsolateSpawnState::Cleanup() { |
| 2357 SwitchIsolateScope switch_scope(I); | 2357 SwitchIsolateScope switch_scope(I); |
| 2358 Dart::ShutdownIsolate(); | 2358 Dart::ShutdownIsolate(); |
| 2359 } | 2359 } |
| 2360 | 2360 |
| 2361 } // namespace dart | 2361 } // namespace dart |
| OLD | NEW |