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

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

Issue 3001343002: Remove GC prologue and epilogue callbacks. (Closed)
Patch Set: Created 3 years, 4 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/pages.h » ('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/text_buffer.h" 10 #include "platform/text_buffer.h"
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 api_state_(NULL), 792 api_state_(NULL),
793 random_(), 793 random_(),
794 simulator_(NULL), 794 simulator_(NULL),
795 mutex_(new Mutex()), 795 mutex_(new Mutex()),
796 symbols_mutex_(new Mutex()), 796 symbols_mutex_(new Mutex()),
797 type_canonicalization_mutex_(new Mutex()), 797 type_canonicalization_mutex_(new Mutex()),
798 constant_canonicalization_mutex_(new Mutex()), 798 constant_canonicalization_mutex_(new Mutex()),
799 megamorphic_lookup_mutex_(new Mutex()), 799 megamorphic_lookup_mutex_(new Mutex()),
800 message_handler_(NULL), 800 message_handler_(NULL),
801 spawn_state_(NULL), 801 spawn_state_(NULL),
802 gc_prologue_callback_(NULL),
803 gc_epilogue_callback_(NULL),
804 defer_finalization_count_(0), 802 defer_finalization_count_(0),
805 pending_deopts_(new MallocGrowableArray<PendingLazyDeopt>), 803 pending_deopts_(new MallocGrowableArray<PendingLazyDeopt>),
806 deopt_context_(NULL), 804 deopt_context_(NULL),
807 tag_table_(GrowableObjectArray::null()), 805 tag_table_(GrowableObjectArray::null()),
808 deoptimized_code_array_(GrowableObjectArray::null()), 806 deoptimized_code_array_(GrowableObjectArray::null()),
809 sticky_error_(Error::null()), 807 sticky_error_(Error::null()),
810 next_(NULL), 808 next_(NULL),
811 loading_invalidation_gen_(kInvalidGen), 809 loading_invalidation_gen_(kInvalidGen),
812 top_level_parsing_count_(0), 810 top_level_parsing_count_(0),
813 field_list_mutex_(new Mutex()), 811 field_list_mutex_(new Mutex()),
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 void IsolateSpawnState::DecrementSpawnCount() { 2830 void IsolateSpawnState::DecrementSpawnCount() {
2833 ASSERT(spawn_count_monitor_ != NULL); 2831 ASSERT(spawn_count_monitor_ != NULL);
2834 ASSERT(spawn_count_ != NULL); 2832 ASSERT(spawn_count_ != NULL);
2835 MonitorLocker ml(spawn_count_monitor_); 2833 MonitorLocker ml(spawn_count_monitor_);
2836 ASSERT(*spawn_count_ > 0); 2834 ASSERT(*spawn_count_ > 0);
2837 *spawn_count_ = *spawn_count_ - 1; 2835 *spawn_count_ = *spawn_count_ - 1;
2838 ml.Notify(); 2836 ml.Notify();
2839 } 2837 }
2840 2838
2841 } // namespace dart 2839 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698