| 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 '../constants/constant_system.dart'; | 9 import '../constants/constant_system.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../elements/resolution_types.dart'; |
| 11 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
| 12 import '../io/source_information.dart'; | 12 import '../io/source_information.dart'; |
| 13 import '../js_backend/js_backend.dart'; | 13 import '../js_backend/js_backend.dart'; |
| 14 import '../resolution/tree_elements.dart'; | 14 import '../resolution/tree_elements.dart'; |
| 15 import '../tree/tree.dart' as ast; | 15 import '../tree/tree.dart' as ast; |
| 16 import '../types/types.dart'; | 16 import '../types/types.dart'; |
| 17 import '../universe/call_structure.dart' show CallStructure; | 17 import '../universe/call_structure.dart' show CallStructure; |
| 18 import '../universe/use.dart' show TypeUse; | 18 import '../universe/use.dart' show TypeUse; |
| 19 import '../world.dart' show ClosedWorld; | 19 import '../world.dart' show ClosedWorld; |
| 20 import 'jump_handler.dart'; | 20 import 'jump_handler.dart'; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 if (unaliased is TypedefType) throw 'unable to unalias $type'; | 329 if (unaliased is TypedefType) throw 'unable to unalias $type'; |
| 330 unaliased.accept(this, builder); | 330 unaliased.accept(this, builder); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void visitDynamicType(DynamicType type, GraphBuilder builder) { | 333 void visitDynamicType(DynamicType type, GraphBuilder builder) { |
| 334 JavaScriptBackend backend = builder.compiler.backend; | 334 JavaScriptBackend backend = builder.compiler.backend; |
| 335 ClassElement cls = backend.helpers.DynamicRuntimeType; | 335 ClassElement cls = backend.helpers.DynamicRuntimeType; |
| 336 builder.push(new HDynamicType(type, new TypeMask.exact(cls, closedWorld))); | 336 builder.push(new HDynamicType(type, new TypeMask.exact(cls, closedWorld))); |
| 337 } | 337 } |
| 338 } | 338 } |
| OLD | NEW |