| 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 Interceptors { | 7 class Interceptors { |
| 8 Compiler compiler; | 8 Compiler compiler; |
| 9 Interceptors(Compiler this.compiler); | 9 Interceptors(Compiler this.compiler); |
| 10 | 10 |
| (...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2566 } | 2566 } |
| 2567 | 2567 |
| 2568 if (node.receiver == null) { | 2568 if (node.receiver == null) { |
| 2569 inputs.add(localsHandler.readThis()); | 2569 inputs.add(localsHandler.readThis()); |
| 2570 } else { | 2570 } else { |
| 2571 visit(node.receiver); | 2571 visit(node.receiver); |
| 2572 inputs.add(pop()); | 2572 inputs.add(pop()); |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 addDynamicSendArgumentsToList(node, inputs); | 2575 addDynamicSendArgumentsToList(node, inputs); |
| 2576 |
| 2576 // The first entry in the inputs list is the receiver. | 2577 // The first entry in the inputs list is the receiver. |
| 2577 pushWithPosition(new HInvokeDynamicMethod(selector, inputs), node); | 2578 pushWithPosition(new HInvokeDynamicMethod(selector, inputs), node); |
| 2578 | 2579 |
| 2579 if (isNotEquals) { | 2580 if (isNotEquals) { |
| 2580 HNot not = new HNot(popBoolified()); | 2581 HNot not = new HNot(popBoolified()); |
| 2581 push(not); | 2582 push(not); |
| 2582 } | 2583 } |
| 2583 } | 2584 } |
| 2584 | 2585 |
| 2585 visitClosureSend(Send node) { | 2586 visitClosureSend(Send node) { |
| (...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4609 new HSubGraphBlockInformation(elseBranch.graph)); | 4610 new HSubGraphBlockInformation(elseBranch.graph)); |
| 4610 | 4611 |
| 4611 HBasicBlock conditionStartBlock = conditionBranch.block; | 4612 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 4612 conditionStartBlock.setBlockFlow(info, joinBlock); | 4613 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 4613 SubGraph conditionGraph = conditionBranch.graph; | 4614 SubGraph conditionGraph = conditionBranch.graph; |
| 4614 HIf branch = conditionGraph.end.last; | 4615 HIf branch = conditionGraph.end.last; |
| 4615 assert(branch is HIf); | 4616 assert(branch is HIf); |
| 4616 branch.blockInformation = conditionStartBlock.blockFlow; | 4617 branch.blockInformation = conditionStartBlock.blockFlow; |
| 4617 } | 4618 } |
| 4618 } | 4619 } |
| OLD | NEW |