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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 1193423002: dart2js: Avoid Object.create for bookeeping data structures during startup. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
index 06f080341a464cbce307e5454dfd4bb68e003f8e..334b7462e8518239135b2a111047fc190f7cd8e4 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
@@ -797,11 +797,11 @@ class OldEmitter implements Emitter {
return js.statement('''
function init() {
$isolatePropertiesName = Object.create(null);
- #allClasses = Object.create(null);
+ #allClasses = map();
#getTypeFromName = function(name) {return #allClasses[name];};
- #interceptorsByTag = Object.create(null);
- #leafTags = Object.create(null);
- #finishedClasses = Object.create(null);
+ #interceptorsByTag = map();
+ #leafTags = map();
+ #finishedClasses = map();
if (#needsLazyInitializer) {
// [staticName] is only provided in non-minified mode. If missing, we
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698