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

Unified Diff: runtime/bin/dartutils.cc

Issue 341543004: Adding embedder API function Dart_FinalizeLoading (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
===================================================================
--- runtime/bin/dartutils.cc (revision 37402)
+++ runtime/bin/dartutils.cc (working copy)
@@ -742,20 +742,9 @@
// Callback function that gets called from dartutils when there are
-// no more outstanding load requests. Invoke Dart core library function
-// that completes futures of loadLibrary calls (deferred library loading).
-// Invoking this function finalizes newly loaded classes as a side
-// effect.
+// no more outstanding load requests.
void FUNCTION_NAME(Builtin_DoneLoading)(Dart_NativeArguments args) {
- Dart_Handle corelib_url = DartUtils::NewString(DartUtils::kCoreLibURL);
- DART_CHECK_VALID(corelib_url);
- Dart_Handle corelib = Dart_LookupLibrary(corelib_url);
- DART_CHECK_VALID(corelib);
- Dart_Handle res =
- Dart_Invoke(corelib,
- DartUtils::NewString("_completeDeferredLoads"),
- 0,
- NULL);
+ Dart_Handle res = Dart_FinalizeLoading();
if (Dart_IsError(res)) {
Dart_PropagateError(res);
}
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698