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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 debugger_(NULL), | 157 debugger_(NULL), |
158 long_jump_base_(NULL), | 158 long_jump_base_(NULL), |
159 timer_list_(), | 159 timer_list_(), |
160 ast_node_id_(AstNode::kNoId), | 160 ast_node_id_(AstNode::kNoId), |
161 computation_id_(AstNode::kNoId), | 161 computation_id_(AstNode::kNoId), |
162 ic_data_array_(Array::null()), | 162 ic_data_array_(Array::null()), |
163 mutex_(new Mutex()), | 163 mutex_(new Mutex()), |
164 stack_limit_(0), | 164 stack_limit_(0), |
165 saved_stack_limit_(0), | 165 saved_stack_limit_(0), |
166 message_handler_(NULL), | 166 message_handler_(NULL), |
167 spawn_data_(NULL) { | 167 spawn_data_(NULL), |
168 } | 168 flow_graph_file_(NULL) { } |
169 | 169 |
170 | 170 |
171 Isolate::~Isolate() { | 171 Isolate::~Isolate() { |
172 delete [] name_; | 172 delete [] name_; |
173 delete heap_; | 173 delete heap_; |
174 delete object_store_; | 174 delete object_store_; |
175 delete api_state_; | 175 delete api_state_; |
176 delete stub_code_; | 176 delete stub_code_; |
177 delete debugger_; | 177 delete debugger_; |
178 delete mutex_; | 178 delete mutex_; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 | 464 |
465 | 465 |
466 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, | 466 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, |
467 bool visit_prologue_weak_handles) { | 467 bool visit_prologue_weak_handles) { |
468 if (api_state() != NULL) { | 468 if (api_state() != NULL) { |
469 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); | 469 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); |
470 } | 470 } |
471 } | 471 } |
472 | 472 |
473 } // namespace dart | 473 } // namespace dart |
OLD | NEW |