| OLD | NEW |
| 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 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 | 6 |
| 7 import 'package:js_runtime/shared/embedded_names.dart'; | 7 import 'package:js_runtime/shared/embedded_names.dart'; |
| 8 | 8 |
| 9 import '../closure.dart'; | 9 import '../closure.dart'; |
| 10 import '../common.dart'; | 10 import '../common.dart'; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 assert(target.isImplementation); | 208 assert(target.isImplementation); |
| 209 elementInferenceResults = _resultOf(target); | 209 elementInferenceResults = _resultOf(target); |
| 210 assert(elementInferenceResults != null); | 210 assert(elementInferenceResults != null); |
| 211 graph.element = target; | 211 graph.element = target; |
| 212 sourceElementStack.add(target); | 212 sourceElementStack.add(target); |
| 213 sourceInformationBuilder = | 213 sourceInformationBuilder = |
| 214 sourceInformationFactory.createBuilderForContext(resolvedAst); | 214 sourceInformationFactory.createBuilderForContext(resolvedAst); |
| 215 graph.sourceInformation = | 215 graph.sourceInformation = |
| 216 sourceInformationBuilder.buildVariableDeclaration(); | 216 sourceInformationBuilder.buildVariableDeclaration(); |
| 217 localsHandler = new LocalsHandler( | 217 localsHandler = new LocalsHandler( |
| 218 this, target, null, backend.nativeData, backend.interceptorData); | 218 this, target, null, closedWorld.nativeData, backend.interceptorData); |
| 219 loopHandler = new SsaLoopHandler(this); | 219 loopHandler = new SsaLoopHandler(this); |
| 220 typeBuilder = new TypeBuilder(this); | 220 typeBuilder = new TypeBuilder(this); |
| 221 } | 221 } |
| 222 | 222 |
| 223 Element get targetElement => target; | 223 Element get targetElement => target; |
| 224 | 224 |
| 225 /// Reference to resolved elements in [target]'s AST. | 225 /// Reference to resolved elements in [target]'s AST. |
| 226 TreeElements get elements => resolvedAst.elements; | 226 TreeElements get elements => resolvedAst.elements; |
| 227 | 227 |
| 228 @override | 228 @override |
| (...skipping 6513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6742 this.oldReturnLocal, | 6742 this.oldReturnLocal, |
| 6743 this.oldReturnType, | 6743 this.oldReturnType, |
| 6744 this.oldResolvedAst, | 6744 this.oldResolvedAst, |
| 6745 this.oldStack, | 6745 this.oldStack, |
| 6746 this.oldLocalsHandler, | 6746 this.oldLocalsHandler, |
| 6747 this.inTryStatement, | 6747 this.inTryStatement, |
| 6748 this.allFunctionsCalledOnce, | 6748 this.allFunctionsCalledOnce, |
| 6749 this.oldElementInferenceResults) | 6749 this.oldElementInferenceResults) |
| 6750 : super(function); | 6750 : super(function); |
| 6751 } | 6751 } |
| OLD | NEW |