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

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

Issue 2809203003: Remove Compiler/JavaScriptBackend from metadata_collector (Closed)
Patch Set: Created 3 years, 8 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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 canBeReflected: canBeReflected, 773 canBeReflected: canBeReflected,
774 requiredParameterCount: requiredParameterCount, 774 requiredParameterCount: requiredParameterCount,
775 optionalParameterDefaultValues: optionalParameterDefaultValues, 775 optionalParameterDefaultValues: optionalParameterDefaultValues,
776 functionType: functionType); 776 functionType: functionType);
777 } 777 }
778 778
779 js.Expression _generateFunctionType( 779 js.Expression _generateFunctionType(
780 ResolutionDartType type, OutputUnit outputUnit) { 780 ResolutionDartType type, OutputUnit outputUnit) {
781 if (type.containsTypeVariables) { 781 if (type.containsTypeVariables) {
782 js.Expression thisAccess = js.js(r'this.$receiver'); 782 js.Expression thisAccess = js.js(r'this.$receiver');
783 return backend.rtiEncoder.getSignatureEncoding(type, thisAccess); 783 return backend.rtiEncoder
784 .getSignatureEncoding(backend.emitter.emitter, type, thisAccess);
784 } else { 785 } else {
785 return backend.emitter.metadataCollector 786 return backend.emitter.metadataCollector
786 .reifyTypeForOutputUnit(type, outputUnit); 787 .reifyTypeForOutputUnit(type, outputUnit);
787 } 788 }
788 } 789 }
789 790
790 List<ParameterStubMethod> _generateParameterStubs( 791 List<ParameterStubMethod> _generateParameterStubs(
791 MethodElement element, bool canTearOff) { 792 MethodElement element, bool canTearOff) {
792 if (!_methodNeedsStubs(element)) return const <ParameterStubMethod>[]; 793 if (!_methodNeedsStubs(element)) return const <ParameterStubMethod>[];
793 794
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 Constant constant = new Constant(name, holder, constantValue); 973 Constant constant = new Constant(name, holder, constantValue);
973 _constants[constantValue] = constant; 974 _constants[constantValue] = constant;
974 } 975 }
975 } 976 }
976 977
977 Holder _registerStaticStateHolder() { 978 Holder _registerStaticStateHolder() {
978 return _registry.registerHolder(namer.staticStateHolder, 979 return _registry.registerHolder(namer.staticStateHolder,
979 isStaticStateHolder: true); 980 isStaticStateHolder: true);
980 } 981 }
981 } 982 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698