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

Side by Side Diff: pkg/kernel/lib/transformations/flags.dart

Issue 2529973002: Speed up kernel sanity checks. (Closed)
Patch Set: Revert parent_pointer_test Created 4 years 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
« no previous file with comments | « pkg/kernel/lib/checks.dart ('k') | pkg/kernel/test/check_bench.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library kernel.transformations.flags; 1 library kernel.transformations.flags;
2 2
3 import '../ast.dart'; 3 import '../ast.dart';
4 4
5 /// Flags summarizing the kinds of AST nodes contained in a given member or 5 /// Flags summarizing the kinds of AST nodes contained in a given member or
6 /// class, for speeding up transformations that only affect certain types of 6 /// class, for speeding up transformations that only affect certain types of
7 /// nodes. 7 /// nodes.
8 /// 8 ///
9 /// These are set by the frontend and the deserializer. 9 /// These are set by the frontend and the deserializer.
10 class TransformerFlag { 10 class TransformerFlag {
11 /// The class or member contains 'super' calls, that is, one of the AST nodes 11 /// The class or member contains 'super' calls, that is, one of the AST nodes
12 /// [SuperPropertyGet], [SuperPropertySet], [SuperMethodInvocation]. 12 /// [SuperPropertyGet], [SuperPropertySet], [SuperMethodInvocation].
13 static const int superCalls = 1 << 0; 13 static const int superCalls = 1 << 0;
14 14
15 /// Temporary flag used by sanity checks to indicate that the given member
16 /// has been seen.
17 static const int seenBySanityCheck = 1 << 1;
18
15 // TODO(asgerf): We could also add a flag for 'async' and will probably have 19 // TODO(asgerf): We could also add a flag for 'async' and will probably have
16 // one for closures as well. 20 // one for closures as well.
17 } 21 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/checks.dart ('k') | pkg/kernel/test/check_bench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698