| 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 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 } | 1827 } |
| 1828 #else | 1828 #else |
| 1829 raw_class = class_table()->At(cid); | 1829 raw_class = class_table()->At(cid); |
| 1830 #endif // !PRODUCT | 1830 #endif // !PRODUCT |
| 1831 ASSERT(raw_class != NULL); | 1831 ASSERT(raw_class != NULL); |
| 1832 ASSERT(raw_class->ptr()->id_ == cid); | 1832 ASSERT(raw_class->ptr()->id_ == cid); |
| 1833 return raw_class; | 1833 return raw_class; |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 | 1836 |
| 1837 #ifndef PRODUCT |
| 1837 static const char* ExceptionPauseInfoToServiceEnum(Dart_ExceptionPauseInfo pi) { | 1838 static const char* ExceptionPauseInfoToServiceEnum(Dart_ExceptionPauseInfo pi) { |
| 1838 switch (pi) { | 1839 switch (pi) { |
| 1839 case kPauseOnAllExceptions: | 1840 case kPauseOnAllExceptions: |
| 1840 return "All"; | 1841 return "All"; |
| 1841 case kNoPauseOnExceptions: | 1842 case kNoPauseOnExceptions: |
| 1842 return "None"; | 1843 return "None"; |
| 1843 case kPauseOnUnhandledExceptions: | 1844 case kPauseOnUnhandledExceptions: |
| 1844 return "Unhandled"; | 1845 return "Unhandled"; |
| 1845 default: | 1846 default: |
| 1846 UNIMPLEMENTED(); | 1847 UNIMPLEMENTED(); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 if (!handlers.IsNull()) { | 1964 if (!handlers.IsNull()) { |
| 1964 JSONArray extensions(&jsobj, "extensionRPCs"); | 1965 JSONArray extensions(&jsobj, "extensionRPCs"); |
| 1965 String& handler_name = String::Handle(); | 1966 String& handler_name = String::Handle(); |
| 1966 for (intptr_t i = 0; i < handlers.Length(); i += kRegisteredEntrySize) { | 1967 for (intptr_t i = 0; i < handlers.Length(); i += kRegisteredEntrySize) { |
| 1967 handler_name ^= handlers.At(i + kRegisteredNameIndex); | 1968 handler_name ^= handlers.At(i + kRegisteredNameIndex); |
| 1968 extensions.AddValue(handler_name.ToCString()); | 1969 extensions.AddValue(handler_name.ToCString()); |
| 1969 } | 1970 } |
| 1970 } | 1971 } |
| 1971 } | 1972 } |
| 1972 } | 1973 } |
| 1974 #endif |
| 1973 | 1975 |
| 1974 | 1976 |
| 1975 void Isolate::set_tag_table(const GrowableObjectArray& value) { | 1977 void Isolate::set_tag_table(const GrowableObjectArray& value) { |
| 1976 tag_table_ = value.raw(); | 1978 tag_table_ = value.raw(); |
| 1977 } | 1979 } |
| 1978 | 1980 |
| 1979 | 1981 |
| 1980 void Isolate::set_current_tag(const UserTag& tag) { | 1982 void Isolate::set_current_tag(const UserTag& tag) { |
| 1981 uword user_tag = tag.tag(); | 1983 uword user_tag = tag.tag(); |
| 1982 ASSERT(user_tag < kUwordMax); | 1984 ASSERT(user_tag < kUwordMax); |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2816 void IsolateSpawnState::DecrementSpawnCount() { | 2818 void IsolateSpawnState::DecrementSpawnCount() { |
| 2817 ASSERT(spawn_count_monitor_ != NULL); | 2819 ASSERT(spawn_count_monitor_ != NULL); |
| 2818 ASSERT(spawn_count_ != NULL); | 2820 ASSERT(spawn_count_ != NULL); |
| 2819 MonitorLocker ml(spawn_count_monitor_); | 2821 MonitorLocker ml(spawn_count_monitor_); |
| 2820 ASSERT(*spawn_count_ > 0); | 2822 ASSERT(*spawn_count_ > 0); |
| 2821 *spawn_count_ = *spawn_count_ - 1; | 2823 *spawn_count_ = *spawn_count_ - 1; |
| 2822 ml.Notify(); | 2824 ml.Notify(); |
| 2823 } | 2825 } |
| 2824 | 2826 |
| 2825 } // namespace dart | 2827 } // namespace dart |
| OLD | NEW |