| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 yieldStarExpression: backend.emitter.staticFunctionAccess( | 45 yieldStarExpression: backend.emitter.staticFunctionAccess( |
| 46 backend.getYieldStar()), | 46 backend.getYieldStar()), |
| 47 safeVariableName: backend.namer.safeVariableName); | 47 safeVariableName: backend.namer.safeVariableName); |
| 48 } | 48 } |
| 49 else if (element.asyncMarker == AsyncMarker.ASYNC_STAR) { | 49 else if (element.asyncMarker == AsyncMarker.ASYNC_STAR) { |
| 50 rewriter = new AsyncRewriter( | 50 rewriter = new AsyncRewriter( |
| 51 backend.compiler, | 51 backend.compiler, |
| 52 backend.compiler.currentElement, | 52 backend.compiler.currentElement, |
| 53 streamHelper: backend.emitter.staticFunctionAccess( | 53 streamHelper: backend.emitter.staticFunctionAccess( |
| 54 backend.getStreamHelper()), | 54 backend.getStreamHelper()), |
| 55 streamOfController: backend.emitter.staticFunctionAccess( |
| 56 backend.getStreamOfController()), |
| 55 newController: backend.emitter.staticFunctionAccess( | 57 newController: backend.emitter.staticFunctionAccess( |
| 56 backend.getASyncStarControllerConstructor()), | 58 backend.getASyncStarControllerConstructor()), |
| 57 safeVariableName: backend.namer.safeVariableName, | 59 safeVariableName: backend.namer.safeVariableName, |
| 58 yieldExpression: backend.emitter.staticFunctionAccess( | 60 yieldExpression: backend.emitter.staticFunctionAccess( |
| 59 backend.getYieldSingle()), | 61 backend.getYieldSingle()), |
| 60 yieldStarExpression: backend.emitter.staticFunctionAccess( | 62 yieldStarExpression: backend.emitter.staticFunctionAccess( |
| 61 backend.getYieldStar())); | 63 backend.getYieldStar())); |
| 62 } | 64 } |
| 63 if (rewriter != null) { | 65 if (rewriter != null) { |
| 64 result = rewriter.rewrite(result); | 66 result = rewriter.rewrite(result); |
| (...skipping 6819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6884 if (unaliased is TypedefType) throw 'unable to unalias $type'; | 6886 if (unaliased is TypedefType) throw 'unable to unalias $type'; |
| 6885 unaliased.accept(this, builder); | 6887 unaliased.accept(this, builder); |
| 6886 } | 6888 } |
| 6887 | 6889 |
| 6888 void visitDynamicType(DynamicType type, SsaBuilder builder) { | 6890 void visitDynamicType(DynamicType type, SsaBuilder builder) { |
| 6889 JavaScriptBackend backend = builder.compiler.backend; | 6891 JavaScriptBackend backend = builder.compiler.backend; |
| 6890 ClassElement cls = backend.findHelper('DynamicRuntimeType'); | 6892 ClassElement cls = backend.findHelper('DynamicRuntimeType'); |
| 6891 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld))); | 6893 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld))); |
| 6892 } | 6894 } |
| 6893 } | 6895 } |
| OLD | NEW |