| OLD | NEW |
| 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 ClosureConversionTask, ClosureFieldElement; | 10 import '../../closure.dart' show ClosureConversionTask, ClosureFieldElement; |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 } | 686 } |
| 687 bool isClosureBaseClass = cls == _commonElements.closureClass; | 687 bool isClosureBaseClass = cls == _commonElements.closureClass; |
| 688 | 688 |
| 689 List<Method> methods = []; | 689 List<Method> methods = []; |
| 690 List<StubMethod> callStubs = <StubMethod>[]; | 690 List<StubMethod> callStubs = <StubMethod>[]; |
| 691 | 691 |
| 692 ClassStubGenerator classStubGenerator = new ClassStubGenerator( | 692 ClassStubGenerator classStubGenerator = new ClassStubGenerator( |
| 693 _task.emitter, _commonElements, _namer, _worldBuilder, _closedWorld, | 693 _task.emitter, _commonElements, _namer, _worldBuilder, _closedWorld, |
| 694 enableMinification: _options.enableMinification); | 694 enableMinification: _options.enableMinification); |
| 695 RuntimeTypeGenerator runtimeTypeGenerator = new RuntimeTypeGenerator( | 695 RuntimeTypeGenerator runtimeTypeGenerator = new RuntimeTypeGenerator( |
| 696 _elementEnvironment, |
| 696 _commonElements, | 697 _commonElements, |
| 698 _types, |
| 699 _closedWorld, |
| 697 _closureDataLookup, | 700 _closureDataLookup, |
| 698 _task, | 701 _task, |
| 699 _namer, | 702 _namer, |
| 700 _nativeData, | 703 _nativeData, |
| 701 _rtiChecks, | 704 _rtiChecks, |
| 702 _rtiEncoder, | 705 _rtiEncoder, |
| 703 _rtiNeed, | 706 _rtiNeed, |
| 704 _rtiSubstitutions, | 707 _rtiSubstitutions, |
| 705 _jsInteropAnalysis); | 708 _jsInteropAnalysis); |
| 706 | 709 |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 Constant constant = new Constant(name, holder, constantValue); | 1193 Constant constant = new Constant(name, holder, constantValue); |
| 1191 _constants[constantValue] = constant; | 1194 _constants[constantValue] = constant; |
| 1192 } | 1195 } |
| 1193 } | 1196 } |
| 1194 | 1197 |
| 1195 Holder _registerStaticStateHolder() { | 1198 Holder _registerStaticStateHolder() { |
| 1196 return _registry.registerHolder(_namer.staticStateHolder, | 1199 return _registry.registerHolder(_namer.staticStateHolder, |
| 1197 isStaticStateHolder: true); | 1200 isStaticStateHolder: true); |
| 1198 } | 1201 } |
| 1199 } | 1202 } |
| OLD | NEW |