| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 '../closure.dart'; | 5 import '../closure.dart'; |
| 6 import '../common.dart'; | 6 import '../common.dart'; |
| 7 import '../common/codegen.dart' show CodegenRegistry; | 7 import '../common/codegen.dart' show CodegenRegistry; |
| 8 import '../compiler.dart'; | 8 import '../compiler.dart'; |
| 9 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
| 10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 Compiler compiler; | 35 Compiler compiler; |
| 36 | 36 |
| 37 /// The JavaScript backend we are targeting in this compilation. | 37 /// The JavaScript backend we are targeting in this compilation. |
| 38 JavaScriptBackend get backend; | 38 JavaScriptBackend get backend; |
| 39 | 39 |
| 40 /// The tree elements for the element being built into an SSA graph. | 40 /// The tree elements for the element being built into an SSA graph. |
| 41 TreeElements get elements; | 41 TreeElements get elements; |
| 42 | 42 |
| 43 CodegenRegistry get registry; | 43 CodegenRegistry get registry; |
| 44 | 44 |
| 45 ClosedWorld get closedWorld => compiler.closedWorld; | 45 ClosedWorld get closedWorld; |
| 46 | 46 |
| 47 CommonMasks get commonMasks => closedWorld.commonMasks; | 47 CommonMasks get commonMasks => closedWorld.commonMasks; |
| 48 | 48 |
| 49 GlobalTypeInferenceResults get globalInferenceResults => | 49 GlobalTypeInferenceResults get globalInferenceResults => |
| 50 compiler.globalInference.results; | 50 compiler.globalInference.results; |
| 51 | 51 |
| 52 /// Used to track the locals while building the graph. | 52 /// Used to track the locals while building the graph. |
| 53 LocalsHandler localsHandler; | 53 LocalsHandler localsHandler; |
| 54 | 54 |
| 55 /// A stack of instructions. | 55 /// A stack of instructions. |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 if (unaliased is TypedefType) throw 'unable to unalias $type'; | 331 if (unaliased is TypedefType) throw 'unable to unalias $type'; |
| 332 unaliased.accept(this, builder); | 332 unaliased.accept(this, builder); |
| 333 } | 333 } |
| 334 | 334 |
| 335 void visitDynamicType(DynamicType type, GraphBuilder builder) { | 335 void visitDynamicType(DynamicType type, GraphBuilder builder) { |
| 336 JavaScriptBackend backend = builder.compiler.backend; | 336 JavaScriptBackend backend = builder.compiler.backend; |
| 337 ClassElement cls = backend.helpers.DynamicRuntimeType; | 337 ClassElement cls = backend.helpers.DynamicRuntimeType; |
| 338 builder.push(new HDynamicType(type, new TypeMask.exact(cls, closedWorld))); | 338 builder.push(new HDynamicType(type, new TypeMask.exact(cls, closedWorld))); |
| 339 } | 339 } |
| 340 } | 340 } |
| OLD | NEW |