Chromium Code Reviews| 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 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1888 #ifndef PRODUCT | 1888 #ifndef PRODUCT |
| 1889 if (IsReloading()) { | 1889 if (IsReloading()) { |
| 1890 raw_class = reload_context()->GetClassForHeapWalkAt(cid); | 1890 raw_class = reload_context()->GetClassForHeapWalkAt(cid); |
| 1891 } else { | 1891 } else { |
| 1892 raw_class = class_table()->At(cid); | 1892 raw_class = class_table()->At(cid); |
| 1893 } | 1893 } |
| 1894 #else | 1894 #else |
| 1895 raw_class = class_table()->At(cid); | 1895 raw_class = class_table()->At(cid); |
| 1896 #endif // !PRODUCT | 1896 #endif // !PRODUCT |
| 1897 ASSERT(raw_class != NULL); | 1897 ASSERT(raw_class != NULL); |
| 1898 ASSERT(raw_class->ptr()->id_ == cid); | 1898 // This is temporarily untrue during a class id remap. |
| 1899 // ASSERT(raw_class->ptr()->id_ == cid); | |
|
siva
2016/08/30 23:12:40
remap only happens in DART_PRECOMPILER, should thi
| |
| 1899 return raw_class; | 1900 return raw_class; |
| 1900 } | 1901 } |
| 1901 | 1902 |
| 1902 | 1903 |
| 1903 #ifndef PRODUCT | 1904 #ifndef PRODUCT |
| 1904 static const char* ExceptionPauseInfoToServiceEnum(Dart_ExceptionPauseInfo pi) { | 1905 static const char* ExceptionPauseInfoToServiceEnum(Dart_ExceptionPauseInfo pi) { |
| 1905 switch (pi) { | 1906 switch (pi) { |
| 1906 case kPauseOnAllExceptions: | 1907 case kPauseOnAllExceptions: |
| 1907 return "All"; | 1908 return "All"; |
| 1908 case kNoPauseOnExceptions: | 1909 case kNoPauseOnExceptions: |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2900 void IsolateSpawnState::DecrementSpawnCount() { | 2901 void IsolateSpawnState::DecrementSpawnCount() { |
| 2901 ASSERT(spawn_count_monitor_ != NULL); | 2902 ASSERT(spawn_count_monitor_ != NULL); |
| 2902 ASSERT(spawn_count_ != NULL); | 2903 ASSERT(spawn_count_ != NULL); |
| 2903 MonitorLocker ml(spawn_count_monitor_); | 2904 MonitorLocker ml(spawn_count_monitor_); |
| 2904 ASSERT(*spawn_count_ > 0); | 2905 ASSERT(*spawn_count_ > 0); |
| 2905 *spawn_count_ = *spawn_count_ - 1; | 2906 *spawn_count_ = *spawn_count_ - 1; |
| 2906 ml.Notify(); | 2907 ml.Notify(); |
| 2907 } | 2908 } |
| 2908 | 2909 |
| 2909 } // namespace dart | 2910 } // namespace dart |
| OLD | NEW |