Index: runtime/lib/object.cc |
=================================================================== |
--- runtime/lib/object.cc (revision 37317) |
+++ runtime/lib/object.cc (working copy) |
@@ -296,11 +296,19 @@ |
} |
-DEFINE_NATIVE_ENTRY(LibraryPrefix_load, 1) { |
+DEFINE_NATIVE_ENTRY(LibraryPrefix_invalidateDependentCode, 1) { |
const LibraryPrefix& prefix = |
LibraryPrefix::CheckedHandle(arguments->NativeArgAt(0)); |
- prefix.LoadLibrary(); |
+ prefix.InvalidateDependentCode(); |
return Bool::Get(true).raw(); |
} |
+ |
+DEFINE_NATIVE_ENTRY(LibraryPrefix_load, 1) { |
+ const LibraryPrefix& prefix = |
+ LibraryPrefix::CheckedHandle(arguments->NativeArgAt(0)); |
+ bool hasCompleted = prefix.LoadLibrary(); |
+ return Bool::Get(hasCompleted).raw(); |
+} |
+ |
} // namespace dart |