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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 23875033: Do not analyze assert when assertions are disabled. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart (revision 27549)
+++ sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart (working copy)
@@ -44,10 +44,10 @@
class SendVisitor extends ResolvedVisitor {
final PlaceholderCollector collector;
- get compiler => collector.compiler;
+ SendVisitor(collector, TreeElements elements)
+ : this.collector = collector,
+ super(elements, collector.compiler);
- SendVisitor(this.collector, TreeElements elements) : super(elements);
-
visitOperatorSend(Send node) {
}
@@ -104,6 +104,10 @@
}
}
+ visitAssert(node) {
+ visitStaticSend(node);
+ }
+
visitStaticSend(Send node) {
final element = elements[node];
collector.backend.registerStaticSend(element, node);

Powered by Google App Engine
This is Rietveld 408576698