| 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/text_buffer.h" | 10 #include "platform/text_buffer.h" |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |