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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 11788016: Update dart2js unit tests to new library API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: No need to implement Iterable Created 7 years, 11 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index a5a1252ba7da581cf9d673fbc81d93809f910747..709336892875ca69668dffe1c84bf2971e5cef64 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -1408,7 +1408,7 @@ $lazyInitializerLogic
: inInterceptor ? const ['self', 'target', 'receiver']
: const ['self', 'target'];
- Collection<Element> typedefChecks =
+ Iterable<Element> typedefChecks =
getTypedefChecksOn(member.computeType(compiler));
bool hasTypedefChecks = !typedefChecks.isEmpty;
@@ -2089,7 +2089,8 @@ if (typeof document !== 'undefined' && document.readyState !== 'complete') {
void computeNeededClasses() {
instantiatedClasses =
- compiler.codegenWorld.instantiatedClasses.where(computeClassFilter());
+ compiler.codegenWorld.instantiatedClasses.where(computeClassFilter())
+ .toSet();
neededClasses = instantiatedClasses.toSet();
for (ClassElement element in instantiatedClasses) {
for (ClassElement superclass = element.superclass;

Powered by Google App Engine
This is Rietveld 408576698