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

Unified Diff: lib/compiler/implementation/js_backend/native_emitter.dart

Issue 10911006: Collect the types used in is-checks in the resolver phase. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix last upload. 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
Index: lib/compiler/implementation/js_backend/native_emitter.dart
diff --git a/lib/compiler/implementation/js_backend/native_emitter.dart b/lib/compiler/implementation/js_backend/native_emitter.dart
index 8cd5c334bd0325ac0392609dfee93d1bcc9e0beb..b8b4c08d37283f101d8ad5faeef51a71f61d948b 100644
--- a/lib/compiler/implementation/js_backend/native_emitter.dart
+++ b/lib/compiler/implementation/js_backend/native_emitter.dart
@@ -383,9 +383,9 @@ function(cls, fields, methods) {
}
void emitIsChecks(Map<String, String> objectProperties) {
- for (Element type in compiler.codegenWorld.isChecks) {
- if (!requiresNativeIsCheck(type)) continue;
- String name = compiler.namer.operatorIs(type);
+ for (Element element in compiler.codegenWorld.checkedClasses) {
+ if (!requiresNativeIsCheck(element)) continue;
+ String name = compiler.namer.operatorIs(element);
objectProperties[name] = 'function() { return false; }';
}
}

Powered by Google App Engine
This is Rietveld 408576698