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

Unified Diff: runtime/bin/dartutils.cc

Issue 1998963003: Rework standalone to use a synchronous loader that does not invoke Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « runtime/bin/dartutils.h ('k') | runtime/bin/isolate_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index 5db7dacc0d58644d8b1fee7ee2762858795fe723..c0d607271f91657fe5cebc283e7facb461a8710e 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -334,18 +334,6 @@ Dart_Handle DartUtils::SetWorkingDirectory() {
}
-Dart_Handle DartUtils::ResolveUri(Dart_Handle library_url, Dart_Handle url) {
- const int kNumArgs = 2;
- Dart_Handle dart_args[kNumArgs];
- dart_args[0] = library_url;
- dart_args[1] = url;
- return Dart_Invoke(DartUtils::BuiltinLib(),
- NewString("_resolveUri"),
- kNumArgs,
- dart_args);
-}
-
-
Dart_Handle DartUtils::ResolveUriInWorkingDirectory(Dart_Handle script_uri) {
const int kNumArgs = 1;
Dart_Handle dart_args[kNumArgs];
@@ -379,6 +367,29 @@ Dart_Handle DartUtils::LibraryFilePath(Dart_Handle library_uri) {
}
+Dart_Handle DartUtils::ResolveUri(Dart_Handle library_url, Dart_Handle url) {
+ const int kNumArgs = 2;
+ Dart_Handle dart_args[kNumArgs];
+ dart_args[0] = library_url;
+ dart_args[1] = url;
+ return Dart_Invoke(DartUtils::BuiltinLib(),
+ NewString("_resolveUri"),
+ kNumArgs,
+ dart_args);
+}
+
+
+Dart_Handle DartUtils::ResolveScript(Dart_Handle url) {
+ const int kNumArgs = 1;
+ Dart_Handle dart_args[kNumArgs];
+ dart_args[0] = url;
+ return Dart_Invoke(DartUtils::BuiltinLib(),
+ NewString("_resolveScriptUri"),
+ kNumArgs,
+ dart_args);
+}
+
+
static Dart_Handle LoadDataAsync_Invoke(Dart_Handle tag,
Dart_Handle url,
Dart_Handle library_url) {
@@ -742,7 +753,7 @@ Dart_Handle DartUtils::SetupPackageRoot(const char* package_root,
Dart_Handle dart_args[kNumArgs];
dart_args[0] = result;
result = Dart_Invoke(DartUtils::BuiltinLib(),
- NewString("_loadPackagesMap"),
+ NewString("_setPackagesMap"),
kNumArgs,
dart_args);
RETURN_IF_ERROR(result);
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/isolate_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698