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

Side by Side Diff: runtime/vm/parser.cc

Issue 248213002: Expose functionality to create a stack trace to internal vm code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/parser.h" 5 #include "vm/parser.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 21 matching lines...) Expand all
32 #include "vm/timer.h" 32 #include "vm/timer.h"
33 #include "vm/zone.h" 33 #include "vm/zone.h"
34 34
35 namespace dart { 35 namespace dart {
36 36
37 DEFINE_FLAG(bool, enable_asserts, false, "Enable assert statements."); 37 DEFINE_FLAG(bool, enable_asserts, false, "Enable assert statements.");
38 DEFINE_FLAG(bool, enable_type_checks, false, "Enable type checks."); 38 DEFINE_FLAG(bool, enable_type_checks, false, "Enable type checks.");
39 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); 39 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations.");
40 DEFINE_FLAG(bool, warning_as_error, false, "Treat warnings as errors."); 40 DEFINE_FLAG(bool, warning_as_error, false, "Treat warnings as errors.");
41 DEFINE_FLAG(bool, silent_warnings, false, "Silence warnings."); 41 DEFINE_FLAG(bool, silent_warnings, false, "Silence warnings.");
42 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef"); 42 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef.");
43 DECLARE_FLAG(bool, error_on_bad_type); 43 DECLARE_FLAG(bool, error_on_bad_type);
44 DECLARE_FLAG(bool, throw_on_javascript_int_overflow); 44 DECLARE_FLAG(bool, throw_on_javascript_int_overflow);
45 45
46 static void CheckedModeHandler(bool value) { 46 static void CheckedModeHandler(bool value) {
47 FLAG_enable_asserts = value; 47 FLAG_enable_asserts = value;
48 FLAG_enable_type_checks = value; 48 FLAG_enable_type_checks = value;
49 } 49 }
50 50
51 // --enable-checked-mode and --checked both enable checked mode which is 51 // --enable-checked-mode and --checked both enable checked mode which is
52 // equivalent to setting --enable-asserts and --enable-type-checks. 52 // equivalent to setting --enable-asserts and --enable-type-checks.
(...skipping 10899 matching lines...) Expand 10 before | Expand all | Expand 10 after
10952 void Parser::SkipQualIdent() { 10952 void Parser::SkipQualIdent() {
10953 ASSERT(IsIdentifier()); 10953 ASSERT(IsIdentifier());
10954 ConsumeToken(); 10954 ConsumeToken();
10955 if (CurrentToken() == Token::kPERIOD) { 10955 if (CurrentToken() == Token::kPERIOD) {
10956 ConsumeToken(); // Consume the kPERIOD token. 10956 ConsumeToken(); // Consume the kPERIOD token.
10957 ExpectIdentifier("identifier expected after '.'"); 10957 ExpectIdentifier("identifier expected after '.'");
10958 } 10958 }
10959 } 10959 }
10960 10960
10961 } // namespace dart 10961 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698