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

Unified Diff: runtime/bin/loader.cc

Issue 2896523003: Minor code reorg to ensure we don't include parts of the Library tag handler in the precompiled run… (Closed)
Patch Set: Created 3 years, 7 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/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/loader.cc
diff --git a/runtime/bin/loader.cc b/runtime/bin/loader.cc
index c939e7043c6fac05fea825ad4abbd58ef747dc58..cdf370b2a11f4c0b7187dc955fe41a73a197d7ee 100644
--- a/runtime/bin/loader.cc
+++ b/runtime/bin/loader.cc
@@ -617,7 +617,22 @@ Dart_Handle Loader::ResolveAsFilePath(Dart_Handle url,
payload_length);
}
+#if defined(DART_PRECOMPILED_RUNTIME)
+Dart_Handle Loader::LibraryTagHandler(Dart_LibraryTag tag,
+ Dart_Handle library,
+ Dart_Handle url) {
+ return Dart_Null();
+}
+
+Dart_Handle Loader::DartColonLibraryTagHandler(Dart_LibraryTag tag,
+ Dart_Handle library,
+ Dart_Handle url,
+ const char* library_url_string,
+ const char* url_string) {
+ return Dart_Null();
+}
+#else
Dart_Handle Loader::LibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle library,
Dart_Handle url) {
@@ -803,6 +818,7 @@ Dart_Handle Loader::DartColonLibraryTagHandler(Dart_LibraryTag tag,
UNREACHABLE();
return Dart_Null();
}
+#endif // !defined(DART_PRECOMPILED_RUNTIME)
void Loader::InitOnce() {
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698