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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/universe.dart

Issue 12528008: Implement CHA through type mask and TypedSelector in the simple type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/universe/universe.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/universe/universe.dart (revision 19670)
+++ sdk/lib/_internal/compiler/implementation/universe/universe.dart (working copy)
@@ -484,8 +484,8 @@
bool appliesUnnamed(Element element, Compiler compiler) {
assert(sameNameHack(element, compiler));
- // [TypedSelector] are only used when compiling.
- assert(compiler.phase == Compiler.PHASE_COMPILING);
+ // [TypedSelector] are only used after resolution.
+ assert(compiler.phase > Compiler.PHASE_RESOLVING);
if (!element.isMember()) return false;
// A closure can be called through any typed selector:

Powered by Google App Engine
This is Rietveld 408576698