| 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 "lib/mirrors.h" | 10 #include "lib/mirrors.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 stack_frame_index_(-1), | 334 stack_frame_index_(-1), |
| 335 cha_used_(false), | 335 cha_used_(false), |
| 336 object_id_ring_(NULL), | 336 object_id_ring_(NULL), |
| 337 profiler_data_(NULL), | 337 profiler_data_(NULL), |
| 338 thread_state_(NULL), | 338 thread_state_(NULL), |
| 339 next_(NULL), | 339 next_(NULL), |
| 340 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 340 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
| 341 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) | 341 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) |
| 342 reusable_handles_() { | 342 reusable_handles_() { |
| 343 set_vm_tag(VMTag::kIdleTagId); | 343 set_vm_tag(VMTag::kIdleTagId); |
| 344 set_user_tag(UserTags::kNoUserTag); |
| 344 } | 345 } |
| 345 #undef REUSABLE_HANDLE_SCOPE_INIT | 346 #undef REUSABLE_HANDLE_SCOPE_INIT |
| 346 #undef REUSABLE_HANDLE_INITIALIZERS | 347 #undef REUSABLE_HANDLE_INITIALIZERS |
| 347 | 348 |
| 348 | 349 |
| 349 Isolate::~Isolate() { | 350 Isolate::~Isolate() { |
| 350 delete [] name_; | 351 delete [] name_; |
| 351 delete heap_; | 352 delete heap_; |
| 352 delete object_store_; | 353 delete object_store_; |
| 353 delete api_state_; | 354 delete api_state_; |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 return func.raw(); | 1134 return func.raw(); |
| 1134 } | 1135 } |
| 1135 | 1136 |
| 1136 | 1137 |
| 1137 void IsolateSpawnState::Cleanup() { | 1138 void IsolateSpawnState::Cleanup() { |
| 1138 SwitchIsolateScope switch_scope(isolate()); | 1139 SwitchIsolateScope switch_scope(isolate()); |
| 1139 Dart::ShutdownIsolate(); | 1140 Dart::ShutdownIsolate(); |
| 1140 } | 1141 } |
| 1141 | 1142 |
| 1142 } // namespace dart | 1143 } // namespace dart |
| OLD | NEW |