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

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

Issue 12213010: New implementation of {,Linked}Hash{Set,Map}. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments, fix bugs. Created 7 years, 10 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/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index ff825977bfcf8fe92601ad37f9915534502b38f1..88ff9c0a1f9948e4d64909a04144d9857eada8c0 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -306,7 +306,7 @@ class FieldTypesRegistry {
// TODO(sgjesse): Handle field types for classes with more than one
// constructor.
if (ctors.length == 2) {
- optimizedFunctions.forEach((Element field, _) {
+ new Map.from(optimizedFunctions).forEach((Element field, _) {
if (identical(field.enclosingElement, cls)) {
scheduleRecompilation(field);
}
@@ -347,12 +347,12 @@ class FieldTypesRegistry {
// TODO(sgjesse): Take the type of the setter into account.
if (setterSelectorsUsed.contains(setter.name)) return;
setterSelectorsUsed.add(setter.name);
- optimizedStaticFunctions.forEach((Element field, _) {
+ new Map.from(optimizedStaticFunctions).forEach((Element field, _) {
if (field.name == setter.name) {
scheduleRecompilation(field);
}
});
- optimizedFunctions.forEach((Element field, _) {
+ new Map.from(optimizedFunctions).forEach((Element field, _) {
if (field.name == setter.name) {
scheduleRecompilation(field);
}
@@ -897,7 +897,7 @@ class JavaScriptBackend extends Backend {
// The backend will use a literal list to initialize the entries
// of the map.
if (enqueuer.isResolutionQueue) {
- enqueuer.registerInstantiatedClass(compiler.listClass);
+ enqueuer.registerInstantiatedClass(compiler.listClass);
}
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/native_handler.dart » ('j') | sdk/lib/collection/hash_set.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698