| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bigint_store_(NULL), | 55 bigint_store_(NULL), |
| 56 top_exit_frame_info_(0), | 56 top_exit_frame_info_(0), |
| 57 init_callback_data_(NULL), | 57 init_callback_data_(NULL), |
| 58 library_tag_handler_(NULL), | 58 library_tag_handler_(NULL), |
| 59 api_state_(NULL), | 59 api_state_(NULL), |
| 60 stub_code_(NULL), | 60 stub_code_(NULL), |
| 61 code_index_table_(NULL), | 61 code_index_table_(NULL), |
| 62 debugger_(NULL), | 62 debugger_(NULL), |
| 63 long_jump_base_(NULL), | 63 long_jump_base_(NULL), |
| 64 timer_list_(), | 64 timer_list_(), |
| 65 ast_node_id_(AstNode::kNoId), |
| 65 mutex_(new Mutex()), | 66 mutex_(new Mutex()), |
| 66 stack_limit_(0), | 67 stack_limit_(0), |
| 67 saved_stack_limit_(0), | 68 saved_stack_limit_(0) { |
| 68 ast_node_id_(AstNode::kNoId) { | |
| 69 } | 69 } |
| 70 | 70 |
| 71 | 71 |
| 72 Isolate::~Isolate() { | 72 Isolate::~Isolate() { |
| 73 delete message_queue_; | 73 delete message_queue_; |
| 74 delete heap_; | 74 delete heap_; |
| 75 delete object_store_; | 75 delete object_store_; |
| 76 // Do not delete stack resources: top_resource_ and current_zone_. | 76 // Do not delete stack resources: top_resource_ and current_zone_. |
| 77 delete bigint_store_; | 77 delete bigint_store_; |
| 78 delete api_state_; | 78 delete api_state_; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 } | 364 } |
| 365 | 365 |
| 366 // Visit the top context which is stored in the isolate. | 366 // Visit the top context which is stored in the isolate. |
| 367 visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_)); | 367 visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_)); |
| 368 | 368 |
| 369 // Visit objects in the debugger. | 369 // Visit objects in the debugger. |
| 370 debugger()->VisitObjectPointers(visitor); | 370 debugger()->VisitObjectPointers(visitor); |
| 371 } | 371 } |
| 372 | 372 |
| 373 } // namespace dart | 373 } // namespace dart |
| OLD | NEW |