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

Unified Diff: bin/process_script.h

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.h
===================================================================
--- bin/process_script.h (revision 1106)
+++ bin/process_script.h (working copy)
@@ -14,7 +14,7 @@
explicit CommandLineOptions(int max_count)
: count_(0), max_count_(max_count), arguments_(NULL) {
static const int kWordSize = sizeof(intptr_t);
- arguments_ = reinterpret_cast<char **>(malloc(max_count * kWordSize));
+ arguments_ = reinterpret_cast<const char **>(malloc(max_count * kWordSize));
if (arguments_ == NULL) {
max_count_ = 0;
}
@@ -27,12 +27,12 @@
}
int count() const { return count_; }
- char** arguments() const { return arguments_; }
+ const char** arguments() const { return arguments_; }
- char* GetArgument(int index) const {
+ const char* GetArgument(int index) const {
return (index >= 0 && index < count_) ? arguments_[index] : NULL;
}
- void AddArgument(char* argument) {
+ void AddArgument(const char* argument) {
if (count_ < max_count_) {
arguments_[count_] = argument;
count_ += 1;
@@ -50,11 +50,15 @@
int count_;
int max_count_;
- char** arguments_;
+ const char** arguments_;
};
+extern Dart_Handle ReadStringFromFile(const char* filename);
extern Dart_Handle LoadScript(const char* script_name);
-extern Dart_Handle LoadSnapshotCreationScript(const char* script_name);
+extern Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
+ Dart_Handle library,
+ Dart_Handle url,
+ bool import_builtin_lib);
#endif // BIN_PROCESS_SCRIPT_H_
« bin/gen_snapshot.cc ('K') | « bin/gen_snapshot.cc ('k') | bin/process_script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698