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 "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/json.h" | 10 #include "platform/json.h" |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 trace_buffer_(NULL), | 788 trace_buffer_(NULL), |
789 profiler_data_(NULL), | 789 profiler_data_(NULL), |
790 tag_table_(GrowableObjectArray::null()), | 790 tag_table_(GrowableObjectArray::null()), |
791 collected_closures_(GrowableObjectArray::null()), | 791 collected_closures_(GrowableObjectArray::null()), |
792 deoptimized_code_array_(GrowableObjectArray::null()), | 792 deoptimized_code_array_(GrowableObjectArray::null()), |
793 background_compilation_queue_(GrowableObjectArray::null()), | 793 background_compilation_queue_(GrowableObjectArray::null()), |
794 pending_service_extension_calls_(GrowableObjectArray::null()), | 794 pending_service_extension_calls_(GrowableObjectArray::null()), |
795 registered_service_extension_handlers_(GrowableObjectArray::null()), | 795 registered_service_extension_handlers_(GrowableObjectArray::null()), |
796 metrics_list_head_(NULL), | 796 metrics_list_head_(NULL), |
797 compilation_allowed_(true), | 797 compilation_allowed_(true), |
798 cha_(NULL), | |
799 next_(NULL), | 798 next_(NULL), |
800 pause_loop_monitor_(NULL) { | 799 pause_loop_monitor_(NULL) { |
801 flags_.CopyFrom(api_flags); | 800 flags_.CopyFrom(api_flags); |
802 Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId); | 801 Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId); |
803 set_user_tag(UserTags::kDefaultUserTag); | 802 set_user_tag(UserTags::kDefaultUserTag); |
804 } | 803 } |
805 | 804 |
806 #undef REUSABLE_HANDLE_SCOPE_INIT | 805 #undef REUSABLE_HANDLE_SCOPE_INIT |
807 #undef REUSABLE_HANDLE_INITIALIZERS | 806 #undef REUSABLE_HANDLE_INITIALIZERS |
808 | 807 |
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2621 serialized_message_, serialized_message_len_); | 2620 serialized_message_, serialized_message_len_); |
2622 } | 2621 } |
2623 | 2622 |
2624 | 2623 |
2625 void IsolateSpawnState::Cleanup() { | 2624 void IsolateSpawnState::Cleanup() { |
2626 SwitchIsolateScope switch_scope(I); | 2625 SwitchIsolateScope switch_scope(I); |
2627 Dart::ShutdownIsolate(); | 2626 Dart::ShutdownIsolate(); |
2628 } | 2627 } |
2629 | 2628 |
2630 } // namespace dart | 2629 } // namespace dart |
OLD | NEW |