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

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

Issue 1392893003: In precompilation, finalize all classes eagerly. Use the stable class hierarchy for doing CHA based… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
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 all_classes_finalized_(false),
798 cha_(NULL), 799 cha_(NULL),
799 next_(NULL), 800 next_(NULL),
800 pause_loop_monitor_(NULL) { 801 pause_loop_monitor_(NULL) {
801 flags_.CopyFrom(api_flags); 802 flags_.CopyFrom(api_flags);
802 Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId); 803 Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId);
803 set_user_tag(UserTags::kDefaultUserTag); 804 set_user_tag(UserTags::kDefaultUserTag);
804 } 805 }
805 806
806 #undef REUSABLE_HANDLE_SCOPE_INIT 807 #undef REUSABLE_HANDLE_SCOPE_INIT
807 #undef REUSABLE_HANDLE_INITIALIZERS 808 #undef REUSABLE_HANDLE_INITIALIZERS
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2621 serialized_message_, serialized_message_len_); 2622 serialized_message_, serialized_message_len_);
2622 } 2623 }
2623 2624
2624 2625
2625 void IsolateSpawnState::Cleanup() { 2626 void IsolateSpawnState::Cleanup() {
2626 SwitchIsolateScope switch_scope(I); 2627 SwitchIsolateScope switch_scope(I);
2627 Dart::ShutdownIsolate(); 2628 Dart::ShutdownIsolate();
2628 } 2629 }
2629 2630
2630 } // namespace dart 2631 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698