Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: runtime/vm/isolate.cc

Issue 2281263002: AOT: Reassign class ids so class hierarchies have contiguous ranges. (Closed)
Patch Set: review Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« runtime/vm/class_table.cc ('K') | « runtime/vm/heap.h ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698