| 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 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3111 if (returnType != null) instruction.guaranteedType = returnType; | 3111 if (returnType != null) instruction.guaranteedType = returnType; |
| 3112 pushWithPosition(instruction, node); | 3112 pushWithPosition(instruction, node); |
| 3113 } else { | 3113 } else { |
| 3114 generateGetter(node, element); | 3114 generateGetter(node, element); |
| 3115 List<HInstruction> inputs = <HInstruction>[pop()]; | 3115 List<HInstruction> inputs = <HInstruction>[pop()]; |
| 3116 addDynamicSendArgumentsToList(node, inputs); | 3116 addDynamicSendArgumentsToList(node, inputs); |
| 3117 pushWithPosition(new HInvokeClosure(selector, inputs), node); | 3117 pushWithPosition(new HInvokeClosure(selector, inputs), node); |
| 3118 } | 3118 } |
| 3119 } | 3119 } |
| 3120 | 3120 |
| 3121 HConstant addConstantString(Identifier node, String string) { | 3121 HConstant addConstantString(Node node, String string) { |
| 3122 DartString dartString = new DartString.literal(string); | 3122 DartString dartString = new DartString.literal(string); |
| 3123 Constant constant = constantSystem.createString(dartString, node); | 3123 Constant constant = constantSystem.createString(dartString, node); |
| 3124 return graph.addConstant(constant); | 3124 return graph.addConstant(constant); |
| 3125 } | 3125 } |
| 3126 | 3126 |
| 3127 visitTypeReferenceSend(Send node) { | 3127 visitTypeReferenceSend(Send node) { |
| 3128 Element element = elements[node]; | 3128 Element element = elements[node]; |
| 3129 HInstruction name; | 3129 HInstruction name; |
| 3130 Element helper = | 3130 Element helper = |
| 3131 compiler.findHelper(RuntimeTypeInformation.CACHE_HELPER_NAME); | 3131 compiler.findHelper(RuntimeTypeInformation.CACHE_HELPER_NAME); |
| (...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4675 new HSubGraphBlockInformation(elseBranch.graph)); | 4675 new HSubGraphBlockInformation(elseBranch.graph)); |
| 4676 | 4676 |
| 4677 HBasicBlock conditionStartBlock = conditionBranch.block; | 4677 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 4678 conditionStartBlock.setBlockFlow(info, joinBlock); | 4678 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 4679 SubGraph conditionGraph = conditionBranch.graph; | 4679 SubGraph conditionGraph = conditionBranch.graph; |
| 4680 HIf branch = conditionGraph.end.last; | 4680 HIf branch = conditionGraph.end.last; |
| 4681 assert(branch is HIf); | 4681 assert(branch is HIf); |
| 4682 branch.blockInformation = conditionStartBlock.blockFlow; | 4682 branch.blockInformation = conditionStartBlock.blockFlow; |
| 4683 } | 4683 } |
| 4684 } | 4684 } |
| OLD | NEW |