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

Unified Diff: runtime/vm/parser.cc

Issue 10962013: - Make the VM understand the --checked flag to be aligned with dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | tests/language/factory3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 12648)
+++ runtime/vm/parser.cc (working copy)
@@ -37,12 +37,17 @@
FLAG_enable_type_checks = value;
}
+// --enable-checked-mode and --checked both enable checked mode which is
+// equivalent to setting --enable-asserts and --enable-type-checks.
DEFINE_FLAG_HANDLER(CheckedModeHandler,
enable_checked_mode,
"Enable checked mode.");
+DEFINE_FLAG_HANDLER(CheckedModeHandler,
+ checked,
+ "Enabled checked mode.");
regis 2012/09/20 18:17:27 Enabled -> Enable I fixed the same typo yesterday
Ivan Posva 2012/09/20 18:18:44 Done.
+
#if defined(DEBUG)
-
class TraceParser : public ValueObject {
public:
TraceParser(intptr_t token_pos, const Script& script, const char* msg) {
@@ -2827,7 +2832,7 @@
(follower == Token::kGET) || // Getter following a type.
(follower == Token::kSET) || // Setter following a type.
(follower == Token::kOPERATOR) || // Operator following a type.
- (Token::IsIdentifier(follower)) || // Member name following a type.
+ (Token::IsIdentifier(follower)) || // Member name following a type.
((follower == Token::kPERIOD) && // Qualified class name of type,
(LookaheadToken(3) != Token::kLPAREN))) { // but not a named constr.
ASSERT(is_top_level_);
« no previous file with comments | « no previous file | tests/language/factory3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698