Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 71cef9f50143a18d062259a2828ec31c1914691c..be6c3f31eeaa3179cbf7befce65fe9c2395d35f8 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -6606,6 +6606,11 @@ Dart_Handle Dart_SaveJITFeedback(uint8_t** buffer, intptr_t* buffer_length) { |
#endif |
} |
+DART_EXPORT void Dart_SortClasses() { |
+ DARTSCOPE(Thread::Current()); |
+ ClassFinalizer::SortClasses(); |
+ ClassFinalizer::ClearAllCode(); |
+} |
DART_EXPORT Dart_Handle |
Dart_Precompile(Dart_QualifiedFunctionName entry_points[], |