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

Unified Diff: runtime/bin/main.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
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index c172aaaf033b2dc4c3d9b1bf8ed313eb2587ba9b..5df1fd32eb719d753dda7a11046e5dc6477d4a94 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -267,11 +267,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(),
- MainIsolateInitCallback);
+ Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
+ Dart_Initialize(MainIsolateInitCallback);
// Create an isolate. As a side effect, MainIsolateInitCallback
// gets called, which loads the scripts and libraries.

Powered by Google App Engine
This is Rietveld 408576698