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 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 #if !defined(PRODUCT) | 1865 #if !defined(PRODUCT) |
1866 // Visit objects that are being used for isolate reload. | 1866 // Visit objects that are being used for isolate reload. |
1867 if (reload_context() != NULL) { | 1867 if (reload_context() != NULL) { |
1868 reload_context()->VisitObjectPointers(visitor); | 1868 reload_context()->VisitObjectPointers(visitor); |
1869 } | 1869 } |
1870 if (ServiceIsolate::IsServiceIsolate(this)) { | 1870 if (ServiceIsolate::IsServiceIsolate(this)) { |
1871 ServiceIsolate::VisitObjectPointers(visitor); | 1871 ServiceIsolate::VisitObjectPointers(visitor); |
1872 } | 1872 } |
1873 #endif // !defined(PRODUCT) | 1873 #endif // !defined(PRODUCT) |
1874 | 1874 |
| 1875 #if !defined(DART_PRECOMPILED_RUNTIME) |
1875 // Visit objects that are being used for deoptimization. | 1876 // Visit objects that are being used for deoptimization. |
1876 if (deopt_context() != NULL) { | 1877 if (deopt_context() != NULL) { |
1877 deopt_context()->VisitObjectPointers(visitor); | 1878 deopt_context()->VisitObjectPointers(visitor); |
1878 } | 1879 } |
| 1880 #endif |
1879 | 1881 |
1880 VisitStackPointers(visitor, validate_frames); | 1882 VisitStackPointers(visitor, validate_frames); |
1881 } | 1883 } |
1882 | 1884 |
1883 | 1885 |
1884 void Isolate::VisitStackPointers(ObjectPointerVisitor* visitor, | 1886 void Isolate::VisitStackPointers(ObjectPointerVisitor* visitor, |
1885 bool validate_frames) { | 1887 bool validate_frames) { |
1886 // Visit objects in all threads (e.g., Dart stack, handles in zones). | 1888 // Visit objects in all threads (e.g., Dart stack, handles in zones). |
1887 thread_registry()->VisitObjectPointers(visitor, validate_frames); | 1889 thread_registry()->VisitObjectPointers(visitor, validate_frames); |
1888 } | 1890 } |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2946 void IsolateSpawnState::DecrementSpawnCount() { | 2948 void IsolateSpawnState::DecrementSpawnCount() { |
2947 ASSERT(spawn_count_monitor_ != NULL); | 2949 ASSERT(spawn_count_monitor_ != NULL); |
2948 ASSERT(spawn_count_ != NULL); | 2950 ASSERT(spawn_count_ != NULL); |
2949 MonitorLocker ml(spawn_count_monitor_); | 2951 MonitorLocker ml(spawn_count_monitor_); |
2950 ASSERT(*spawn_count_ > 0); | 2952 ASSERT(*spawn_count_ > 0); |
2951 *spawn_count_ = *spawn_count_ - 1; | 2953 *spawn_count_ = *spawn_count_ - 1; |
2952 ml.Notify(); | 2954 ml.Notify(); |
2953 } | 2955 } |
2954 | 2956 |
2955 } // namespace dart | 2957 } // namespace dart |
OLD | NEW |