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

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

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/js_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 7a21128eb52a95a8a45a303441b74ea327b3c400..8abad790c5e7a694f8d9f90c72f4e071f2a41a70 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -1729,7 +1729,7 @@ class CodeEmitterTask extends CompilerTask {
// interceptors are needed.
Set<ClassElement> needed = new Set<ClassElement>();
backend.specializedGetInterceptors.forEach(
- (_, Collection<ClassElement> elements) {
+ (_, Iterable<ClassElement> elements) {
needed.addAll(elements);
}
);
@@ -2420,7 +2420,7 @@ if (typeof document !== "undefined" && document.readyState !== "complete") {
void emitGetInterceptorMethod(CodeBuffer buffer,
String key,
- Collection<ClassElement> classes) {
+ Iterable<ClassElement> classes) {
jsAst.Statement buildReturnInterceptor(ClassElement cls) {
return js.return_(js(namer.isolateAccess(cls))['prototype']);
}
@@ -2590,7 +2590,7 @@ if (typeof document !== "undefined" && document.readyState !== "complete") {
void emitGetInterceptorMethods(CodeBuffer buffer) {
var specializedGetInterceptors = backend.specializedGetInterceptors;
for (String name in specializedGetInterceptors.keys.toList()..sort()) {
- Collection<ClassElement> classes = specializedGetInterceptors[name];
+ Iterable<ClassElement> classes = specializedGetInterceptors[name];
emitGetInterceptorMethod(buffer, name, classes);
}
}

Powered by Google App Engine
This is Rietveld 408576698