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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 8713012: Introduce Dart_SetVMFlags API function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Force atomicity. 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
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | runtime/include/dart_api.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index b0358bf441993d25970376800275b5a089138bdd..f15ba64fd443321e06a36e51c478cdb74bc01261 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -254,11 +254,8 @@ int main(int argc, char** argv) {
return 255;
}
- // Initialize the Dart VM (TODO(asiva) - remove const_cast once
- // dart API is fixed to take a const char** in Dart_Initialize).
- Dart_Initialize(vm_options.count(),
- vm_options.arguments(),
- SnapshotCreateCallback);
+ Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
+ Dart_Initialize(SnapshotCreateCallback);
// Create an isolate. As a side effect, SnapshotCreateCallback
// gets called, which loads the script (if one is specified), its libraries
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698