| 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; |
| 6 |
| 5 class Interceptors { | 7 class Interceptors { |
| 6 Compiler compiler; | 8 Compiler compiler; |
| 7 Interceptors(Compiler this.compiler); | 9 Interceptors(Compiler this.compiler); |
| 8 | 10 |
| 9 SourceString mapOperatorToMethodName(Operator op) { | 11 SourceString mapOperatorToMethodName(Operator op) { |
| 10 String name = op.source.stringValue; | 12 String name = op.source.stringValue; |
| 11 if (identical(name, '+')) return const SourceString('add'); | 13 if (identical(name, '+')) return const SourceString('add'); |
| 12 if (identical(name, '-')) return const SourceString('sub'); | 14 if (identical(name, '-')) return const SourceString('sub'); |
| 13 if (identical(name, '*')) return const SourceString('mul'); | 15 if (identical(name, '*')) return const SourceString('mul'); |
| 14 if (identical(name, '/')) return const SourceString('div'); | 16 if (identical(name, '/')) return const SourceString('div'); |
| (...skipping 4490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4505 new HSubGraphBlockInformation(elseBranch.graph)); | 4507 new HSubGraphBlockInformation(elseBranch.graph)); |
| 4506 | 4508 |
| 4507 HBasicBlock conditionStartBlock = conditionBranch.block; | 4509 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 4508 conditionStartBlock.setBlockFlow(info, joinBlock); | 4510 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 4509 SubGraph conditionGraph = conditionBranch.graph; | 4511 SubGraph conditionGraph = conditionBranch.graph; |
| 4510 HIf branch = conditionGraph.end.last; | 4512 HIf branch = conditionGraph.end.last; |
| 4511 assert(branch is HIf); | 4513 assert(branch is HIf); |
| 4512 branch.blockInformation = conditionStartBlock.blockFlow; | 4514 branch.blockInformation = conditionStartBlock.blockFlow; |
| 4513 } | 4515 } |
| 4514 } | 4516 } |
| OLD | NEW |