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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 stack_frame_index_(-1), | 332 stack_frame_index_(-1), |
333 cha_used_(false), | 333 cha_used_(false), |
334 object_id_ring_(NULL), | 334 object_id_ring_(NULL), |
335 profiler_data_(NULL), | 335 profiler_data_(NULL), |
336 thread_state_(NULL), | 336 thread_state_(NULL), |
337 next_(NULL), | 337 next_(NULL), |
338 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 338 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
339 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) | 339 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) |
340 reusable_handles_() { | 340 reusable_handles_() { |
341 set_vm_tag(VMTag::kIdleTagId); | 341 set_vm_tag(VMTag::kIdleTagId); |
| 342 set_user_tag(UserTagHelper::kNoUserTag); |
342 } | 343 } |
343 #undef REUSABLE_HANDLE_SCOPE_INIT | 344 #undef REUSABLE_HANDLE_SCOPE_INIT |
344 #undef REUSABLE_HANDLE_INITIALIZERS | 345 #undef REUSABLE_HANDLE_INITIALIZERS |
345 | 346 |
346 | 347 |
347 Isolate::~Isolate() { | 348 Isolate::~Isolate() { |
348 delete [] name_; | 349 delete [] name_; |
349 delete heap_; | 350 delete heap_; |
350 delete object_store_; | 351 delete object_store_; |
351 delete api_state_; | 352 delete api_state_; |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 return func.raw(); | 1125 return func.raw(); |
1125 } | 1126 } |
1126 | 1127 |
1127 | 1128 |
1128 void IsolateSpawnState::Cleanup() { | 1129 void IsolateSpawnState::Cleanup() { |
1129 SwitchIsolateScope switch_scope(isolate()); | 1130 SwitchIsolateScope switch_scope(isolate()); |
1130 Dart::ShutdownIsolate(); | 1131 Dart::ShutdownIsolate(); |
1131 } | 1132 } |
1132 | 1133 |
1133 } // namespace dart | 1134 } // namespace dart |
OLD | NEW |