Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: runtime/vm/isolate.cc

Issue 1401413002: Move no_callback_scope_depth_ and cha_ from isolate -> thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Spelling fix Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/mirrors_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/mirrors_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698