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

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

Issue 12258008: Revert "New implementation of {,Linked}Hash{Set,Map}." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/native_handler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f941ee8964236bdf14fea8ea902f79c7cee63953..e60f8c9913b75e69a458ea4873fdff7f301423d5 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) {
- new Map.from(optimizedFunctions).forEach((Element field, _) {
+ 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);
- new Map.from(optimizedStaticFunctions).forEach((Element field, _) {
+ optimizedStaticFunctions.forEach((Element field, _) {
if (field.name == setter.name) {
scheduleRecompilation(field);
}
});
- new Map.from(optimizedFunctions).forEach((Element field, _) {
+ optimizedFunctions.forEach((Element field, _) {
if (field.name == setter.name) {
scheduleRecompilation(field);
}
@@ -622,14 +622,14 @@ class JavaScriptBackend extends Backend {
CodeEmitterTask emitter;
/**
- * The generated code as a js AST for compiled methods.
+ * The generated code as a js AST for compiled methods.
*/
Map<Element, js.Expression> get generatedCode {
return compiler.enqueuer.codegen.generatedCode;
}
/**
- * The generated code as a js AST for compiled bailout methods.
+ * The generated code as a js AST for compiled bailout methods.
*/
final Map<Element, js.Expression> generatedBailoutCode =
new Map<Element, js.Expression>();
@@ -908,7 +908,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);
enqueuer.registerInstantiatedClass(compiler.mapLiteralClass);
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/native_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698