OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 8 |
9 #include "vm/assert.h" | 9 #include "vm/assert.h" |
10 #include "vm/bigint_store.h" | 10 #include "vm/bigint_store.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 top_exit_frame_info_(0), | 52 top_exit_frame_info_(0), |
53 init_callback_data_(NULL), | 53 init_callback_data_(NULL), |
54 library_tag_handler_(NULL), | 54 library_tag_handler_(NULL), |
55 api_state_(NULL), | 55 api_state_(NULL), |
56 stub_code_(NULL), | 56 stub_code_(NULL), |
57 code_index_table_(NULL), | 57 code_index_table_(NULL), |
58 long_jump_base_(NULL), | 58 long_jump_base_(NULL), |
59 timer_list_(), | 59 timer_list_(), |
60 stack_limit_(0), | 60 stack_limit_(0), |
61 stack_limit_on_overflow_exception_(0), | 61 stack_limit_on_overflow_exception_(0), |
62 ast_node_id_(AstNode::kInvalidId) { | 62 ast_node_id_(AstNode::kNoId) { |
63 } | 63 } |
64 | 64 |
65 | 65 |
66 Isolate::~Isolate() { | 66 Isolate::~Isolate() { |
67 delete message_queue_; | 67 delete message_queue_; |
68 delete heap_; | 68 delete heap_; |
69 delete object_store_; | 69 delete object_store_; |
70 // Do not delete stack resources: top_resource_ and current_zone_. | 70 // Do not delete stack resources: top_resource_ and current_zone_. |
71 delete bigint_store_; | 71 delete bigint_store_; |
72 delete api_state_; | 72 delete api_state_; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // Visit all objects in the code index table. | 280 // Visit all objects in the code index table. |
281 if (code_index_table() != NULL) { | 281 if (code_index_table() != NULL) { |
282 code_index_table()->VisitObjectPointers(visitor); | 282 code_index_table()->VisitObjectPointers(visitor); |
283 } | 283 } |
284 | 284 |
285 // Visit the top context which is stored in the isolate. | 285 // Visit the top context which is stored in the isolate. |
286 visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_)); | 286 visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_)); |
287 } | 287 } |
288 | 288 |
289 } // namespace dart | 289 } // namespace dart |
OLD | NEW |