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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2810183002: Less direct use of JavaScriptBackend in ProgramBuilder (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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 js_backend.backend; 5 library js_backend.backend;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/backend_api.dart' 10 import '../common/backend_api.dart'
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 _closedWorldCache = value; 1191 _closedWorldCache = value;
1192 } 1192 }
1193 1193
1194 /// Called when the compiler starts running the codegen enqueuer. The 1194 /// Called when the compiler starts running the codegen enqueuer. The
1195 /// [WorldImpact] of enabled backend features is returned. 1195 /// [WorldImpact] of enabled backend features is returned.
1196 WorldImpact onCodegenStart( 1196 WorldImpact onCodegenStart(
1197 ClosedWorld closedWorld, CodegenWorldBuilder codegenWorldBuilder) { 1197 ClosedWorld closedWorld, CodegenWorldBuilder codegenWorldBuilder) {
1198 _closedWorld = closedWorld; 1198 _closedWorld = closedWorld;
1199 _namer = determineNamer(closedWorld, codegenWorldBuilder); 1199 _namer = determineNamer(closedWorld, codegenWorldBuilder);
1200 tracer = new Tracer(closedWorld, namer, compiler); 1200 tracer = new Tracer(closedWorld, namer, compiler);
1201 _rtiEncoder = _namer.rtiEncoder = new _RuntimeTypesEncoder(namer, commonElem ents); 1201 _rtiEncoder =
1202 _namer.rtiEncoder = new _RuntimeTypesEncoder(namer, commonElements);
1202 emitter.createEmitter(namer, closedWorld, codegenWorldBuilder); 1203 emitter.createEmitter(namer, closedWorld, codegenWorldBuilder);
1203 _codegenImpactTransformer = new CodegenImpactTransformer( 1204 _codegenImpactTransformer = new CodegenImpactTransformer(
1204 compiler.options, 1205 compiler.options,
1205 compiler.elementEnvironment, 1206 compiler.elementEnvironment,
1206 commonElements, 1207 commonElements,
1207 impacts, 1208 impacts,
1208 checkedModeHelpers, 1209 checkedModeHelpers,
1209 nativeData, 1210 nativeData,
1210 backendUsage, 1211 backendUsage,
1211 rtiNeed, 1212 rtiNeed,
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 1609
1609 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1610 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1610 return !selector.isGetter; 1611 return !selector.isGetter;
1611 } 1612 }
1612 1613
1613 /// Returns `true` if [member] is called from a subclass via `super`. 1614 /// Returns `true` if [member] is called from a subclass via `super`.
1614 bool isAliasedSuperMember(MemberEntity member) { 1615 bool isAliasedSuperMember(MemberEntity member) {
1615 return _aliasedSuperMembers.contains(member); 1616 return _aliasedSuperMembers.contains(member);
1616 } 1617 }
1617 } 1618 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698