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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart

Issue 2349163003: Move towards using WorldImpact for codegen (Closed)
Patch Set: Reinsert missing features uses. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.js_emitter.program_builder; 5 library dart2js.js_emitter.program_builder;
6 6
7 import '../../closure.dart' show ClosureFieldElement; 7 import '../../closure.dart' show ClosureFieldElement;
8 import '../../common.dart'; 8 import '../../common.dart';
9 import '../../common/names.dart' show Names, Selectors; 9 import '../../common/names.dart' show Names, Selectors;
10 import '../../compiler.dart' show Compiler; 10 import '../../compiler.dart' show Compiler;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 List<Fragment> fragments = new List<Fragment>(_registry.librariesMapCount); 163 List<Fragment> fragments = new List<Fragment>(_registry.librariesMapCount);
164 fragments[0] = mainFragment; 164 fragments[0] = mainFragment;
165 fragments.setAll(1, deferredFragments); 165 fragments.setAll(1, deferredFragments);
166 166
167 _markEagerClasses(); 167 _markEagerClasses();
168 168
169 List<Holder> holders = _registry.holders.toList(growable: false); 169 List<Holder> holders = _registry.holders.toList(growable: false);
170 170
171 bool needsNativeSupport = _compiler.enqueuer.codegen.nativeEnqueuer 171 bool needsNativeSupport = _compiler.enqueuer.codegen.nativeEnqueuer
172 .hasInstantiatedNativeClasses(); 172 .hasInstantiatedNativeClasses;
173 173
174 assert(!needsNativeSupport || nativeClasses.isNotEmpty); 174 assert(!needsNativeSupport || nativeClasses.isNotEmpty);
175 175
176 List<js.TokenFinalizer> finalizers = [_task.metadataCollector]; 176 List<js.TokenFinalizer> finalizers = [_task.metadataCollector];
177 if (backend.namer is js.TokenFinalizer) { 177 if (backend.namer is js.TokenFinalizer) {
178 var namingFinalizer = backend.namer; 178 var namingFinalizer = backend.namer;
179 finalizers.add(namingFinalizer); 179 finalizers.add(namingFinalizer);
180 } 180 }
181 181
182 return new Program(fragments, holders, _buildLoadMap(), _symbolsMap, 182 return new Program(fragments, holders, _buildLoadMap(), _symbolsMap,
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 Constant constant = new Constant(name, holder, constantValue); 980 Constant constant = new Constant(name, holder, constantValue);
981 _constants[constantValue] = constant; 981 _constants[constantValue] = constant;
982 } 982 }
983 } 983 }
984 984
985 Holder _registerStaticStateHolder() { 985 Holder _registerStaticStateHolder() {
986 return _registry.registerHolder(namer.staticStateHolder, 986 return _registry.registerHolder(namer.staticStateHolder,
987 isStaticStateHolder: true); 987 isStaticStateHolder: true);
988 } 988 }
989 } 989 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/native_emitter.dart ('k') | pkg/compiler/lib/src/native/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698