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

Unified Diff: bin/process_script.cc

Issue 8439061: Support command line parameters to specify a url to file name mapping. This is used during snapsh... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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
Index: bin/process_script.cc
===================================================================
--- bin/process_script.cc (revision 1106)
+++ bin/process_script.cc (working copy)
@@ -57,7 +57,7 @@
}
-static Dart_Handle ReadStringFromFile(const char* filename) {
+Dart_Handle ReadStringFromFile(const char* filename) {
File* file = File::Open(filename, false);
if (file == NULL) {
const char* format = "Unable to open file: %s";
@@ -86,10 +86,10 @@
}
-static Dart_Handle LibraryTagHandlerHelper(Dart_LibraryTag tag,
- Dart_Handle library,
- Dart_Handle url,
- bool import_builtin_lib) {
+Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
+ Dart_Handle library,
+ Dart_Handle url,
+ bool import_builtin_lib) {
if (!Dart_IsLibrary(library)) {
return Dart_Error("not a library");
}
@@ -149,7 +149,7 @@
Dart_Handle library,
Dart_Handle url) {
const bool kImportBuiltinLib = true; // Import builtin library.
- return LibraryTagHandlerHelper(tag, library, url, kImportBuiltinLib);
+ return LibraryTagHandler(tag, library, url, kImportBuiltinLib);
}
@@ -157,7 +157,7 @@
Dart_Handle library,
Dart_Handle url) {
const bool kDontImportBuiltinLib = false; // Do not import builtin lib.
- return LibraryTagHandlerHelper(tag, library, url, kDontImportBuiltinLib);
+ return LibraryTagHandler(tag, library, url, kDontImportBuiltinLib);
}
« bin/gen_snapshot.cc ('K') | « bin/process_script.h ('k') | bin/run_vm_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698