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

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

Issue 2466593003: Remove some dead fields from Isolate. (Closed)
Patch Set: Created 4 years, 1 month 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') | no next file » | 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/text_buffer.h" 10 #include "platform/text_buffer.h"
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 message_notify_callback_(NULL), 784 message_notify_callback_(NULL),
785 name_(NULL), 785 name_(NULL),
786 debugger_name_(NULL), 786 debugger_name_(NULL),
787 start_time_(OS::GetCurrentTimeMicros()), 787 start_time_(OS::GetCurrentTimeMicros()),
788 main_port_(0), 788 main_port_(0),
789 origin_id_(0), 789 origin_id_(0),
790 pause_capability_(0), 790 pause_capability_(0),
791 terminate_capability_(0), 791 terminate_capability_(0),
792 errors_fatal_(true), 792 errors_fatal_(true),
793 object_store_(NULL), 793 object_store_(NULL),
794 top_exit_frame_info_(0),
795 init_callback_data_(NULL), 794 init_callback_data_(NULL),
796 environment_callback_(NULL), 795 environment_callback_(NULL),
797 library_tag_handler_(NULL), 796 library_tag_handler_(NULL),
798 api_state_(NULL), 797 api_state_(NULL),
799 debugger_(NULL), 798 debugger_(NULL),
800 resume_request_(false), 799 resume_request_(false),
801 last_resume_timestamp_(OS::GetCurrentTimeMillis()), 800 last_resume_timestamp_(OS::GetCurrentTimeMillis()),
802 has_compiled_code_(false), 801 has_compiled_code_(false),
803 random_(), 802 random_(),
804 simulator_(NULL), 803 simulator_(NULL),
805 mutex_(new Mutex()), 804 mutex_(new Mutex()),
806 symbols_mutex_(new Mutex()), 805 symbols_mutex_(new Mutex()),
807 type_canonicalization_mutex_(new Mutex()), 806 type_canonicalization_mutex_(new Mutex()),
808 constant_canonicalization_mutex_(new Mutex()), 807 constant_canonicalization_mutex_(new Mutex()),
809 megamorphic_lookup_mutex_(new Mutex()), 808 megamorphic_lookup_mutex_(new Mutex()),
810 message_handler_(NULL), 809 message_handler_(NULL),
811 spawn_state_(NULL), 810 spawn_state_(NULL),
812 is_runnable_(false), 811 is_runnable_(false),
813 gc_prologue_callback_(NULL), 812 gc_prologue_callback_(NULL),
814 gc_epilogue_callback_(NULL), 813 gc_epilogue_callback_(NULL),
815 defer_finalization_count_(0), 814 defer_finalization_count_(0),
816 pending_deopts_(new MallocGrowableArray<PendingLazyDeopt>), 815 pending_deopts_(new MallocGrowableArray<PendingLazyDeopt>),
817 deopt_context_(NULL), 816 deopt_context_(NULL),
818 is_service_isolate_(false), 817 is_service_isolate_(false),
819 stacktrace_(NULL),
820 stack_frame_index_(-1),
821 last_allocationprofile_accumulator_reset_timestamp_(0), 818 last_allocationprofile_accumulator_reset_timestamp_(0),
822 last_allocationprofile_gc_timestamp_(0), 819 last_allocationprofile_gc_timestamp_(0),
823 object_id_ring_(NULL), 820 object_id_ring_(NULL),
824 tag_table_(GrowableObjectArray::null()), 821 tag_table_(GrowableObjectArray::null()),
825 deoptimized_code_array_(GrowableObjectArray::null()), 822 deoptimized_code_array_(GrowableObjectArray::null()),
826 sticky_error_(Error::null()), 823 sticky_error_(Error::null()),
827 background_compiler_(NULL), 824 background_compiler_(NULL),
828 background_compiler_disabled_depth_(0), 825 background_compiler_disabled_depth_(0),
829 pending_service_extension_calls_(GrowableObjectArray::null()), 826 pending_service_extension_calls_(GrowableObjectArray::null()),
830 registered_service_extension_handlers_(GrowableObjectArray::null()), 827 registered_service_extension_handlers_(GrowableObjectArray::null()),
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after
2967 void IsolateSpawnState::DecrementSpawnCount() { 2964 void IsolateSpawnState::DecrementSpawnCount() {
2968 ASSERT(spawn_count_monitor_ != NULL); 2965 ASSERT(spawn_count_monitor_ != NULL);
2969 ASSERT(spawn_count_ != NULL); 2966 ASSERT(spawn_count_ != NULL);
2970 MonitorLocker ml(spawn_count_monitor_); 2967 MonitorLocker ml(spawn_count_monitor_);
2971 ASSERT(*spawn_count_ > 0); 2968 ASSERT(*spawn_count_ > 0);
2972 *spawn_count_ = *spawn_count_ - 1; 2969 *spawn_count_ = *spawn_count_ - 1;
2973 ml.Notify(); 2970 ml.Notify();
2974 } 2971 }
2975 2972
2976 } // namespace dart 2973 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698