| 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 class SsaCodeGeneratorTask extends CompilerTask { | 5 class SsaCodeGeneratorTask extends CompilerTask { |
| 6 SsaCodeGeneratorTask(Compiler compiler) : super(compiler); | 6 SsaCodeGeneratorTask(Compiler compiler) : super(compiler); |
| 7 String get name() => 'SSA code generator'; | 7 String get name() => 'SSA code generator'; |
| 8 | 8 |
| 9 | 9 |
| 10 String buildJavaScriptFunction(FunctionElement element, | 10 String buildJavaScriptFunction(FunctionElement element, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 phiEquivalence = new Equivalence<HPhi>(), | 200 phiEquivalence = new Equivalence<HPhi>(), |
| 201 unsignedShiftPrecedences = JSPrecedence.binary['>>>'] { | 201 unsignedShiftPrecedences = JSPrecedence.binary['>>>'] { |
| 202 | 202 |
| 203 for (final name in parameterNames.getValues()) { | 203 for (final name in parameterNames.getValues()) { |
| 204 prefixes[name] = 0; | 204 prefixes[name] = 0; |
| 205 } | 205 } |
| 206 | 206 |
| 207 // Create a namespace for temporaries. | 207 // Create a namespace for temporaries. |
| 208 prefixes[TEMPORARY_PREFIX] = 0; | 208 prefixes[TEMPORARY_PREFIX] = 0; |
| 209 | 209 |
| 210 Interceptors interceptors = compiler.builder.interceptors; | 210 Interceptors interceptors = compiler.backend.builder.interceptors; |
| 211 equalsNullElement = interceptors.getEqualsNullInterceptor(); | 211 equalsNullElement = interceptors.getEqualsNullInterceptor(); |
| 212 boolifiedEqualsNullElement = | 212 boolifiedEqualsNullElement = |
| 213 interceptors.getBoolifiedVersionOf(equalsNullElement); | 213 interceptors.getBoolifiedVersionOf(equalsNullElement); |
| 214 } | 214 } |
| 215 | 215 |
| 216 abstract visitTypeGuard(HTypeGuard node); | 216 abstract visitTypeGuard(HTypeGuard node); |
| 217 | 217 |
| 218 abstract beginGraph(HGraph graph); | 218 abstract beginGraph(HGraph graph); |
| 219 abstract endGraph(HGraph graph); | 219 abstract endGraph(HGraph graph); |
| 220 | 220 |
| (...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2608 startBailoutSwitch(); | 2608 startBailoutSwitch(); |
| 2609 } | 2609 } |
| 2610 } | 2610 } |
| 2611 | 2611 |
| 2612 void endLabeledBlock(HLabeledBlockInformation labeledBlockInfo) { | 2612 void endLabeledBlock(HLabeledBlockInformation labeledBlockInfo) { |
| 2613 if (labeledBlockInfo.body.start.hasGuards()) { | 2613 if (labeledBlockInfo.body.start.hasGuards()) { |
| 2614 endBailoutSwitch(); | 2614 endBailoutSwitch(); |
| 2615 } | 2615 } |
| 2616 } | 2616 } |
| 2617 } | 2617 } |
| OLD | NEW |