OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "lib/mirrors.h" | 9 #include "lib/mirrors.h" |
10 #include "vm/compiler_stats.h" | 10 #include "vm/compiler_stats.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 debugger_(NULL), | 156 debugger_(NULL), |
157 long_jump_base_(NULL), | 157 long_jump_base_(NULL), |
158 timer_list_(), | 158 timer_list_(), |
159 ast_node_id_(AstNode::kNoId), | 159 ast_node_id_(AstNode::kNoId), |
160 computation_id_(AstNode::kNoId), | 160 computation_id_(AstNode::kNoId), |
161 ic_data_array_(Array::null()), | 161 ic_data_array_(Array::null()), |
162 mutex_(new Mutex()), | 162 mutex_(new Mutex()), |
163 stack_limit_(0), | 163 stack_limit_(0), |
164 saved_stack_limit_(0), | 164 saved_stack_limit_(0), |
165 message_handler_(NULL), | 165 message_handler_(NULL), |
166 spawn_data_(NULL) { | 166 spawn_data_(NULL), |
| 167 gc_prologue_callbacks_(), |
| 168 gc_epilogue_callbacks_() { |
167 } | 169 } |
168 | 170 |
169 | 171 |
170 Isolate::~Isolate() { | 172 Isolate::~Isolate() { |
171 delete [] name_; | 173 delete [] name_; |
172 delete heap_; | 174 delete heap_; |
173 delete object_store_; | 175 delete object_store_; |
174 delete api_state_; | 176 delete api_state_; |
175 delete stub_code_; | 177 delete stub_code_; |
176 delete debugger_; | 178 delete debugger_; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 447 |
446 | 448 |
447 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, | 449 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, |
448 bool visit_prologue_weak_handles) { | 450 bool visit_prologue_weak_handles) { |
449 if (api_state() != NULL) { | 451 if (api_state() != NULL) { |
450 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); | 452 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); |
451 } | 453 } |
452 } | 454 } |
453 | 455 |
454 } // namespace dart | 456 } // namespace dart |
OLD | NEW |