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

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

Issue 2722753002: Remove HRuntimeType implementation (Closed)
Patch Set: Created 3 years, 9 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.lazy_emitter.model_emitter; 5 library dart2js.js_emitter.lazy_emitter.model_emitter;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' 7 import 'package:js_runtime/shared/embedded_names.dart'
8 show 8 show
9 CREATE_NEW_ISOLATE, 9 CREATE_NEW_ISOLATE,
10 DEFERRED_LIBRARY_URIS, 10 DEFERRED_LIBRARY_URIS,
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 elements.add(js.number(mixin.mixinClass.holder.index)); 708 elements.add(js.number(mixin.mixinClass.holder.index));
709 if (cls.isDirectlyInstantiated) { 709 if (cls.isDirectlyInstantiated) {
710 elements.add(_generateConstructor(cls)); 710 elements.add(_generateConstructor(cls));
711 } 711 }
712 } else { 712 } else {
713 elements.add(_generateConstructor(cls)); 713 elements.add(_generateConstructor(cls));
714 } 714 }
715 Iterable<Method> methods = cls.methods; 715 Iterable<Method> methods = cls.methods;
716 Iterable<Method> isChecks = cls.isChecks; 716 Iterable<Method> isChecks = cls.isChecks;
717 Iterable<Method> callStubs = cls.callStubs; 717 Iterable<Method> callStubs = cls.callStubs;
718 Iterable<Method> typeVariableReaderStubs = cls.typeVariableReaderStubs;
719 Iterable<Method> noSuchMethodStubs = cls.noSuchMethodStubs; 718 Iterable<Method> noSuchMethodStubs = cls.noSuchMethodStubs;
720 Iterable<Method> gettersSetters = _generateGettersSetters(cls); 719 Iterable<Method> gettersSetters = _generateGettersSetters(cls);
721 Iterable<Method> allMethods = [ 720 Iterable<Method> allMethods = [
722 methods, 721 methods,
723 isChecks, 722 isChecks,
724 callStubs, 723 callStubs,
725 typeVariableReaderStubs,
726 noSuchMethodStubs, 724 noSuchMethodStubs,
727 gettersSetters 725 gettersSetters
728 ].expand((x) => x); 726 ].expand((x) => x);
729 elements.addAll(allMethods.expand(emitInstanceMethod)); 727 elements.addAll(allMethods.expand(emitInstanceMethod));
730 728
731 return unparse(compiler, new js.ArrayInitializer(elements)); 729 return unparse(compiler, new js.ArrayInitializer(elements));
732 } 730 }
733 731
734 js.Expression emitLazyInitializer(StaticField field) { 732 js.Expression emitLazyInitializer(StaticField field) {
735 assert(field.isLazy); 733 assert(field.isLazy);
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 #eagerClasses; 1268 #eagerClasses;
1271 1269
1272 var end = Date.now(); 1270 var end = Date.now();
1273 // print('Setup: ' + (end - start) + ' ms.'); 1271 // print('Setup: ' + (end - start) + ' ms.');
1274 1272
1275 #invokeMain; // Start main. 1273 #invokeMain; // Start main.
1276 1274
1277 })(Date.now(), #code) 1275 })(Date.now(), #code)
1278 }"""; 1276 }""";
1279 } 1277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698