| 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 part of ssa; | 5 part of ssa; |
| 6 | 6 |
| 7 class SsaFunctionCompiler implements FunctionCompiler { | 7 class SsaFunctionCompiler implements FunctionCompiler { |
| 8 SsaCodeGeneratorTask generator; | 8 SsaCodeGeneratorTask generator; |
| 9 SsaBuilderTask builder; | 9 SsaBuilderTask builder; |
| 10 SsaOptimizerTask optimizer; | 10 SsaOptimizerTask optimizer; |
| (...skipping 4458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4469 | 4469 |
| 4470 @override | 4470 @override |
| 4471 void visitUnresolvedSuperGet( | 4471 void visitUnresolvedSuperGet( |
| 4472 ast.Send node, | 4472 ast.Send node, |
| 4473 Element element, | 4473 Element element, |
| 4474 _) { | 4474 _) { |
| 4475 handleUnresolvedSuperInvoke(node); | 4475 handleUnresolvedSuperInvoke(node); |
| 4476 } | 4476 } |
| 4477 | 4477 |
| 4478 @override | 4478 @override |
| 4479 void visitSuperSetterGet( |
| 4480 ast.Send node, |
| 4481 MethodElement setter, |
| 4482 _) { |
| 4483 handleUnresolvedSuperInvoke(node); |
| 4484 } |
| 4485 |
| 4486 @override |
| 4479 void visitUnresolvedSuperInvoke( | 4487 void visitUnresolvedSuperInvoke( |
| 4480 ast.Send node, | 4488 ast.Send node, |
| 4481 Element element, | 4489 Element element, |
| 4482 ast.Node argument, | 4490 ast.Node argument, |
| 4483 Selector selector, | 4491 Selector selector, |
| 4484 _) { | 4492 _) { |
| 4485 handleUnresolvedSuperInvoke(node); | 4493 handleUnresolvedSuperInvoke(node); |
| 4486 } | 4494 } |
| 4487 | 4495 |
| 4488 @override | 4496 @override |
| (...skipping 3355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7844 if (unaliased is TypedefType) throw 'unable to unalias $type'; | 7852 if (unaliased is TypedefType) throw 'unable to unalias $type'; |
| 7845 unaliased.accept(this, builder); | 7853 unaliased.accept(this, builder); |
| 7846 } | 7854 } |
| 7847 | 7855 |
| 7848 void visitDynamicType(DynamicType type, SsaBuilder builder) { | 7856 void visitDynamicType(DynamicType type, SsaBuilder builder) { |
| 7849 JavaScriptBackend backend = builder.compiler.backend; | 7857 JavaScriptBackend backend = builder.compiler.backend; |
| 7850 ClassElement cls = backend.findHelper('DynamicRuntimeType'); | 7858 ClassElement cls = backend.findHelper('DynamicRuntimeType'); |
| 7851 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld))); | 7859 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld))); |
| 7852 } | 7860 } |
| 7853 } | 7861 } |
| OLD | NEW |