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

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: '' 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
===================================================================
--- runtime/vm/dart_api_impl.cc (revision 1859)
+++ runtime/vm/dart_api_impl.cc (working copy)
@@ -463,12 +463,13 @@
// TODO(iposva): This is a placeholder for the eventual external Dart API.
-DART_EXPORT bool Dart_Initialize(int argc,
- const char** argv,
- Dart_IsolateInitCallback callback) {
- return Dart::InitOnce(argc, argv, callback);
+DART_EXPORT bool Dart_Initialize(Dart_IsolateInitCallback callback) {
+ return Dart::InitOnce(callback);
}
+DART_EXPORT void Dart_SetVMFlags(int argc, const char** argv) {
+ Flags::ProcessCommandLineFlags(argc, argv);
siva 2011/11/29 19:08:43 Currently we ensure that Dart_Initialize is called
podivilov 2011/11/30 11:50:36 Done.
+}
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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698