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

Unified Diff: vm/parser.cc

Issue 9668034: Fix issue 1950: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 months 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
« vm/flags.cc ('K') | « vm/flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 5257)
+++ vm/parser.cc (working copy)
@@ -27,6 +27,15 @@
DEFINE_FLAG(bool, warning_as_error, false, "Treat warnings as errors.");
DEFINE_FLAG(bool, silent_warnings, false, "Silence warnings.");
+static void CheckedModeHandler(bool value) {
+ FLAG_enable_asserts = value;
+ FLAG_enable_type_checks = value;
+}
+
+DEFINE_FLAG_HANDLER(CheckedModeHandler,
+ enable_checked_mode,
+ "Enabled checked mode.");
+
// All references to Dart names are listed here.
static const char* kAssertionErrorName = "AssertionError";
static const char* kTypeErrorName = "TypeError";
« vm/flags.cc ('K') | « vm/flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698