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 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 reinterpret_cast<RawObject**>(&deoptimized_code_array_)); | 1620 reinterpret_cast<RawObject**>(&deoptimized_code_array_)); |
1621 | 1621 |
1622 // Visit objects in the debugger. | 1622 // Visit objects in the debugger. |
1623 debugger()->VisitObjectPointers(visitor); | 1623 debugger()->VisitObjectPointers(visitor); |
1624 | 1624 |
1625 // Visit objects that are being used for deoptimization. | 1625 // Visit objects that are being used for deoptimization. |
1626 if (deopt_context() != NULL) { | 1626 if (deopt_context() != NULL) { |
1627 deopt_context()->VisitObjectPointers(visitor); | 1627 deopt_context()->VisitObjectPointers(visitor); |
1628 } | 1628 } |
1629 | 1629 |
1630 // Visit objects in thread registry (e.g., handles in zones). | 1630 // Visit objects in thread registry (e.g., Dart stack, handles in zones). |
1631 thread_registry()->VisitObjectPointers(visitor); | 1631 thread_registry()->VisitObjectPointers(visitor, validate_frames); |
1632 } | 1632 } |
1633 | 1633 |
1634 | 1634 |
1635 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, | 1635 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, |
1636 bool visit_prologue_weak_handles) { | 1636 bool visit_prologue_weak_handles) { |
1637 if (api_state() != NULL) { | 1637 if (api_state() != NULL) { |
1638 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); | 1638 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); |
1639 } | 1639 } |
1640 } | 1640 } |
1641 | 1641 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 serialized_message_, serialized_message_len_); | 2160 serialized_message_, serialized_message_len_); |
2161 } | 2161 } |
2162 | 2162 |
2163 | 2163 |
2164 void IsolateSpawnState::Cleanup() { | 2164 void IsolateSpawnState::Cleanup() { |
2165 SwitchIsolateScope switch_scope(I); | 2165 SwitchIsolateScope switch_scope(I); |
2166 Dart::ShutdownIsolate(); | 2166 Dart::ShutdownIsolate(); |
2167 } | 2167 } |
2168 | 2168 |
2169 } // namespace dart | 2169 } // namespace dart |
OLD | NEW |