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

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 20587990da061e24c2e130b11f2e5c35892aa811..8444a3e84a57f5312df4f901db37aa4f292c7b01 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -1724,7 +1724,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);
}
);
@@ -2415,7 +2415,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']);
}
@@ -2582,7 +2582,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