| 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 pause_capability_(0), | 785 pause_capability_(0), |
| 786 terminate_capability_(0), | 786 terminate_capability_(0), |
| 787 errors_fatal_(true), | 787 errors_fatal_(true), |
| 788 init_callback_data_(NULL), | 788 init_callback_data_(NULL), |
| 789 environment_callback_(NULL), | 789 environment_callback_(NULL), |
| 790 library_tag_handler_(NULL), | 790 library_tag_handler_(NULL), |
| 791 api_state_(NULL), | 791 api_state_(NULL), |
| 792 debugger_(NULL), | 792 debugger_(NULL), |
| 793 resume_request_(false), | 793 resume_request_(false), |
| 794 last_resume_timestamp_(OS::GetCurrentTimeMillis()), | 794 last_resume_timestamp_(OS::GetCurrentTimeMillis()), |
| 795 has_compiled_code_(false), | |
| 796 random_(), | 795 random_(), |
| 797 simulator_(NULL), | 796 simulator_(NULL), |
| 798 mutex_(new Mutex()), | 797 mutex_(new Mutex()), |
| 799 symbols_mutex_(new Mutex()), | 798 symbols_mutex_(new Mutex()), |
| 800 type_canonicalization_mutex_(new Mutex()), | 799 type_canonicalization_mutex_(new Mutex()), |
| 801 constant_canonicalization_mutex_(new Mutex()), | 800 constant_canonicalization_mutex_(new Mutex()), |
| 802 megamorphic_lookup_mutex_(new Mutex()), | 801 megamorphic_lookup_mutex_(new Mutex()), |
| 803 message_handler_(NULL), | 802 message_handler_(NULL), |
| 804 spawn_state_(NULL), | 803 spawn_state_(NULL), |
| 805 is_runnable_(false), | 804 is_runnable_(false), |
| (...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2948 void IsolateSpawnState::DecrementSpawnCount() { | 2947 void IsolateSpawnState::DecrementSpawnCount() { |
| 2949 ASSERT(spawn_count_monitor_ != NULL); | 2948 ASSERT(spawn_count_monitor_ != NULL); |
| 2950 ASSERT(spawn_count_ != NULL); | 2949 ASSERT(spawn_count_ != NULL); |
| 2951 MonitorLocker ml(spawn_count_monitor_); | 2950 MonitorLocker ml(spawn_count_monitor_); |
| 2952 ASSERT(*spawn_count_ > 0); | 2951 ASSERT(*spawn_count_ > 0); |
| 2953 *spawn_count_ = *spawn_count_ - 1; | 2952 *spawn_count_ = *spawn_count_ - 1; |
| 2954 ml.Notify(); | 2953 ml.Notify(); |
| 2955 } | 2954 } |
| 2956 | 2955 |
| 2957 } // namespace dart | 2956 } // namespace dart |
| OLD | NEW |