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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 8713012: Introduce Dart_SetVMFlags API function. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Comments addressed. 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 | « runtime/vm/dart.cc ('k') | runtime/vm/flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 6fe6f31c714354405a8c7de23aa02d65d4bb47b7..13eb38ec450e243c0d27b94f618bee87134695d1 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -520,12 +520,13 @@ DART_EXPORT Dart_Handle Dart_MakePersistentHandle(Dart_Handle object) {
// TODO(iposva): This is a placeholder for the eventual external Dart API.
-DART_EXPORT bool Dart_Initialize(int argc,
- const char** argv,
- Dart_IsolateCreateCallback callback) {
- return Dart::InitOnce(argc, argv, callback);
+DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback callback) {
+ return Dart::InitOnce(callback);
}
+DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) {
+ return Flags::ProcessCommandLineFlags(argc, argv);
+}
DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) {
if (Flags::Lookup(flag_name) != NULL) {
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698