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

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 10919123: Reapply Issue 10911006. (Closed) Base URL: https://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 | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index f6420d1f2f420f8b2f2d175da3d30e1c5a2de500..d9a4cac632e9264e5a91b4ad21cb00fd132404bd 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -234,7 +234,7 @@ class Enqueuer {
cls.localMembers.forEach((Element member) {
if (!member.isInstanceMember() && !member.isField()) return;
DartType type = member.computeType(compiler);
- registerIsCheck(type.element);
+ registerIsCheck(type);
SourceString helper = compiler.backend.getCheckedModeHelper(type);
if (helper != null) {
Element helperElement = compiler.findHelper(helper);
@@ -349,9 +349,8 @@ class Enqueuer {
});
}
- // TODO(ngeoffray): This should get a type.
- void registerIsCheck(Element element) {
- universe.isChecks.add(element);
+ void registerIsCheck(DartType type) {
+ universe.isChecks.add(type);
}
void forEach(f(WorkItem work)) {
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698