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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 tag_table_(GrowableObjectArray::null()), | 787 tag_table_(GrowableObjectArray::null()), |
788 deoptimized_code_array_(GrowableObjectArray::null()), | 788 deoptimized_code_array_(GrowableObjectArray::null()), |
789 background_compiler_(NULL), | 789 background_compiler_(NULL), |
790 pending_service_extension_calls_(GrowableObjectArray::null()), | 790 pending_service_extension_calls_(GrowableObjectArray::null()), |
791 registered_service_extension_handlers_(GrowableObjectArray::null()), | 791 registered_service_extension_handlers_(GrowableObjectArray::null()), |
792 metrics_list_head_(NULL), | 792 metrics_list_head_(NULL), |
793 compilation_allowed_(true), | 793 compilation_allowed_(true), |
794 all_classes_finalized_(false), | 794 all_classes_finalized_(false), |
795 next_(NULL), | 795 next_(NULL), |
796 pause_loop_monitor_(NULL), | 796 pause_loop_monitor_(NULL), |
797 cha_invalidation_gen_(0), | 797 cha_invalidation_gen_(kInvalidGen), |
798 field_invalidation_gen_(0), | 798 field_invalidation_gen_(kInvalidGen), |
799 prefix_invalidation_gen_(0) { | 799 prefix_invalidation_gen_(kInvalidGen) { |
800 flags_.CopyFrom(api_flags); | 800 flags_.CopyFrom(api_flags); |
801 Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId); | 801 Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId); |
802 set_user_tag(UserTags::kDefaultUserTag); | 802 set_user_tag(UserTags::kDefaultUserTag); |
803 } | 803 } |
804 | 804 |
805 #undef REUSABLE_HANDLE_SCOPE_INIT | 805 #undef REUSABLE_HANDLE_SCOPE_INIT |
806 #undef REUSABLE_HANDLE_INITIALIZERS | 806 #undef REUSABLE_HANDLE_INITIALIZERS |
807 | 807 |
808 Isolate::~Isolate() { | 808 Isolate::~Isolate() { |
809 free(name_); | 809 free(name_); |
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2531 } | 2531 } |
2532 | 2532 |
2533 | 2533 |
2534 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { | 2534 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { |
2535 return DeserializeObject(thread, | 2535 return DeserializeObject(thread, |
2536 serialized_message_, serialized_message_len_); | 2536 serialized_message_, serialized_message_len_); |
2537 } | 2537 } |
2538 | 2538 |
2539 | 2539 |
2540 } // namespace dart | 2540 } // namespace dart |
OLD | NEW |