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

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

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: update status Created 3 years, 4 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) 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 '../common.dart'; 7 import '../common.dart';
8 import '../common/backend_api.dart' 8 import '../common/backend_api.dart'
9 show ForeignResolver, NativeRegistry, ImpactTransformer; 9 show ForeignResolver, NativeRegistry, ImpactTransformer;
10 import '../common/codegen.dart' show CodegenWorkItem; 10 import '../common/codegen.dart' show CodegenWorkItem;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 Target _target; 437 Target _target;
438 438
439 Tracer tracer; 439 Tracer tracer;
440 440
441 JavaScriptBackend(this.compiler, 441 JavaScriptBackend(this.compiler,
442 {bool generateSourceMap: true, 442 {bool generateSourceMap: true,
443 bool useStartupEmitter: false, 443 bool useStartupEmitter: false,
444 bool useMultiSourceInfo: false, 444 bool useMultiSourceInfo: false,
445 bool useNewSourceInfo: false, 445 bool useNewSourceInfo: false,
446 bool useKernel: false}) 446 bool useKernelInSsa: false})
447 : optimizerHints = new OptimizerHintsForTests( 447 : optimizerHints = new OptimizerHintsForTests(
448 compiler.frontendStrategy.elementEnvironment, 448 compiler.frontendStrategy.elementEnvironment,
449 compiler.frontendStrategy.commonElements), 449 compiler.frontendStrategy.commonElements),
450 this.sourceInformationStrategy = 450 this.sourceInformationStrategy =
451 compiler.backendStrategy.sourceInformationStrategy, 451 compiler.backendStrategy.sourceInformationStrategy,
452 constantCompilerTask = new JavaScriptConstantTask(compiler), 452 constantCompilerTask = new JavaScriptConstantTask(compiler),
453 _nativeDataResolver = new NativeDataResolverImpl(compiler) { 453 _nativeDataResolver = new NativeDataResolverImpl(compiler) {
454 CommonElements commonElements = compiler.frontendStrategy.commonElements; 454 CommonElements commonElements = compiler.frontendStrategy.commonElements;
455 _target = new JavaScriptBackendTarget(this); 455 _target = new JavaScriptBackendTarget(this);
456 _mirrorsData = compiler.frontendStrategy.createMirrorsDataBuilder(); 456 _mirrorsData = compiler.frontendStrategy.createMirrorsDataBuilder();
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 1366
1367 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1367 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1368 return !selector.isGetter; 1368 return !selector.isGetter;
1369 } 1369 }
1370 1370
1371 /// Returns `true` if [member] is called from a subclass via `super`. 1371 /// Returns `true` if [member] is called from a subclass via `super`.
1372 bool isAliasedSuperMember(MemberEntity member) { 1372 bool isAliasedSuperMember(MemberEntity member) {
1373 return _aliasedSuperMembers.contains(member); 1373 return _aliasedSuperMembers.contains(member);
1374 } 1374 }
1375 } 1375 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698