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

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

Issue 2820143004: Remove Compiler and JavaScriptBackend from class_stub_generator (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 ClosureTask, ClosureFieldElement; 7 import '../../closure.dart' show ClosureTask, 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // TODO(jacobr): check whether the class has any active static fields 550 // TODO(jacobr): check whether the class has any active static fields
551 // if it does not we can suppress it completely. 551 // if it does not we can suppress it completely.
552 onlyForRti = true; 552 onlyForRti = true;
553 } 553 }
554 bool isClosureBaseClass = element == _commonElements.closureClass; 554 bool isClosureBaseClass = element == _commonElements.closureClass;
555 555
556 List<Method> methods = []; 556 List<Method> methods = [];
557 List<StubMethod> callStubs = <StubMethod>[]; 557 List<StubMethod> callStubs = <StubMethod>[];
558 558
559 ClassStubGenerator classStubGenerator = new ClassStubGenerator( 559 ClassStubGenerator classStubGenerator = new ClassStubGenerator(
560 _namer, _backend, _worldBuilder, _closedWorld, 560 _task.emitter,
561 _commonElements,
562 _namer,
563 _worldBuilder,
564 _interceptorData,
565 _closedWorld,
561 enableMinification: _options.enableMinification); 566 enableMinification: _options.enableMinification);
562 RuntimeTypeGenerator runtimeTypeGenerator = new RuntimeTypeGenerator( 567 RuntimeTypeGenerator runtimeTypeGenerator = new RuntimeTypeGenerator(
563 _commonElements, 568 _commonElements,
564 _closureToClassMapper, 569 _closureToClassMapper,
565 _task, 570 _task,
566 _namer, 571 _namer,
567 _nativeData, 572 _nativeData,
568 _rtiChecks, 573 _rtiChecks,
569 _rtiEncoder, 574 _rtiEncoder,
570 _rtiNeed, 575 _rtiNeed,
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 Constant constant = new Constant(name, holder, constantValue); 1061 Constant constant = new Constant(name, holder, constantValue);
1057 _constants[constantValue] = constant; 1062 _constants[constantValue] = constant;
1058 } 1063 }
1059 } 1064 }
1060 1065
1061 Holder _registerStaticStateHolder() { 1066 Holder _registerStaticStateHolder() {
1062 return _registry.registerHolder(_namer.staticStateHolder, 1067 return _registry.registerHolder(_namer.staticStateHolder,
1063 isStaticStateHolder: true); 1068 isStaticStateHolder: true);
1064 } 1069 }
1065 } 1070 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698