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 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2075 } | 2075 } |
2076 | 2076 |
2077 | 2077 |
2078 void Isolate::set_registered_service_extension_handlers( | 2078 void Isolate::set_registered_service_extension_handlers( |
2079 const GrowableObjectArray& value) { | 2079 const GrowableObjectArray& value) { |
2080 registered_service_extension_handlers_ = value.raw(); | 2080 registered_service_extension_handlers_ = value.raw(); |
2081 } | 2081 } |
2082 | 2082 |
2083 | 2083 |
2084 void Isolate::AddDeoptimizingBoxedField(const Field& field) { | 2084 void Isolate::AddDeoptimizingBoxedField(const Field& field) { |
| 2085 ASSERT(field.IsOriginal()); |
2085 MonitorLocker ml(boxed_field_list_monitor_); | 2086 MonitorLocker ml(boxed_field_list_monitor_); |
2086 if (boxed_field_list_ == GrowableObjectArray::null()) { | 2087 if (boxed_field_list_ == GrowableObjectArray::null()) { |
2087 boxed_field_list_ = GrowableObjectArray::New(Heap::kOld); | 2088 boxed_field_list_ = GrowableObjectArray::New(Heap::kOld); |
2088 } | 2089 } |
2089 const GrowableObjectArray& array = | 2090 const GrowableObjectArray& array = |
2090 GrowableObjectArray::Handle(boxed_field_list_); | 2091 GrowableObjectArray::Handle(boxed_field_list_); |
2091 array.Add(field, Heap::kOld); | 2092 array.Add(field, Heap::kOld); |
2092 } | 2093 } |
2093 | 2094 |
2094 | 2095 |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 void IsolateSpawnState::DecrementSpawnCount() { | 2810 void IsolateSpawnState::DecrementSpawnCount() { |
2810 ASSERT(spawn_count_monitor_ != NULL); | 2811 ASSERT(spawn_count_monitor_ != NULL); |
2811 ASSERT(spawn_count_ != NULL); | 2812 ASSERT(spawn_count_ != NULL); |
2812 MonitorLocker ml(spawn_count_monitor_); | 2813 MonitorLocker ml(spawn_count_monitor_); |
2813 ASSERT(*spawn_count_ > 0); | 2814 ASSERT(*spawn_count_ > 0); |
2814 *spawn_count_ = *spawn_count_ - 1; | 2815 *spawn_count_ = *spawn_count_ - 1; |
2815 ml.Notify(); | 2816 ml.Notify(); |
2816 } | 2817 } |
2817 | 2818 |
2818 } // namespace dart | 2819 } // namespace dart |
OLD | NEW |