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

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

Issue 2893293002: Share more logic between the Ssa(Ast)Builder and SsaKernelBuilder (Closed)
Patch Set: Rebased Created 3 years, 7 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 'dart:io'; 7 import 'dart:io';
8 import 'dart:convert' show JSON; 8 import 'dart:convert' show JSON;
9 9
10 import '../../closure.dart' show ClosureTask, ClosureFieldElement; 10 import '../../closure.dart' show ClosureTask, ClosureFieldElement;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 final RuntimeTypesNeed _rtiNeed; 92 final RuntimeTypesNeed _rtiNeed;
93 final MirrorsData _mirrorsData; 93 final MirrorsData _mirrorsData;
94 final InterceptorData _interceptorData; 94 final InterceptorData _interceptorData;
95 final SuperMemberData _superMemberData; 95 final SuperMemberData _superMemberData;
96 final RuntimeTypesChecks _rtiChecks; 96 final RuntimeTypesChecks _rtiChecks;
97 final RuntimeTypesEncoder _rtiEncoder; 97 final RuntimeTypesEncoder _rtiEncoder;
98 final RuntimeTypesSubstitutions _rtiSubstitutions; 98 final RuntimeTypesSubstitutions _rtiSubstitutions;
99 final JsInteropAnalysis _jsInteropAnalysis; 99 final JsInteropAnalysis _jsInteropAnalysis;
100 final OneShotInterceptorData _oneShotInterceptorData; 100 final OneShotInterceptorData _oneShotInterceptorData;
101 final CustomElementsCodegenAnalysis _customElementsCodegenAnalysis; 101 final CustomElementsCodegenAnalysis _customElementsCodegenAnalysis;
102 final Map<MemberElement, js.Expression> _generatedCode; 102 final Map<MemberEntity, js.Expression> _generatedCode;
103 final Namer _namer; 103 final Namer _namer;
104 final CodeEmitterTask _task; 104 final CodeEmitterTask _task;
105 final ClosedWorld _closedWorld; 105 final ClosedWorld _closedWorld;
106 106
107 /// Contains the collected information the program builder used to build 107 /// Contains the collected information the program builder used to build
108 /// the model. 108 /// the model.
109 // The collector will be filled on the first call to `buildProgram`. 109 // The collector will be filled on the first call to `buildProgram`.
110 // It is stored and publicly exposed for backwards compatibility. New code 110 // It is stored and publicly exposed for backwards compatibility. New code
111 // (and in particular new emitters) should not use it. 111 // (and in particular new emitters) should not use it.
112 final Collector collector; 112 final Collector collector;
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 Constant constant = new Constant(name, holder, constantValue); 1174 Constant constant = new Constant(name, holder, constantValue);
1175 _constants[constantValue] = constant; 1175 _constants[constantValue] = constant;
1176 } 1176 }
1177 } 1177 }
1178 1178
1179 Holder _registerStaticStateHolder() { 1179 Holder _registerStaticStateHolder() {
1180 return _registry.registerHolder(_namer.staticStateHolder, 1180 return _registry.registerHolder(_namer.staticStateHolder,
1181 isStaticStateHolder: true); 1181 isStaticStateHolder: true);
1182 } 1182 }
1183 } 1183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698