| 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 /** | 7 /** |
| 8 * A special element for the extra parameter taken by intercepted | 8 * A special element for the extra parameter taken by intercepted |
| 9 * methods. We need to override [Element.computeType] because our | 9 * methods. We need to override [Element.computeType] because our |
| 10 * optimizers may look at its declared type. | 10 * optimizers may look at its declared type. |
| (...skipping 2613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2624 } | 2624 } |
| 2625 } else if (Elements.isInstanceSend(send, elements)) { | 2625 } else if (Elements.isInstanceSend(send, elements)) { |
| 2626 HInstruction receiver = generateInstanceSendReceiver(send); | 2626 HInstruction receiver = generateInstanceSendReceiver(send); |
| 2627 generateInstanceGetterWithCompiledReceiver( | 2627 generateInstanceGetterWithCompiledReceiver( |
| 2628 send, elements.getSelector(send), receiver); | 2628 send, elements.getSelector(send), receiver); |
| 2629 } else if (Elements.isStaticOrTopLevelFunction(element)) { | 2629 } else if (Elements.isStaticOrTopLevelFunction(element)) { |
| 2630 // TODO(5346): Try to avoid the need for calling [declaration] before | 2630 // TODO(5346): Try to avoid the need for calling [declaration] before |
| 2631 // creating an [HStatic]. | 2631 // creating an [HStatic]. |
| 2632 push(new HStatic(element.declaration)); | 2632 push(new HStatic(element.declaration)); |
| 2633 // TODO(ahe): This should be registered in codegen. | 2633 // TODO(ahe): This should be registered in codegen. |
| 2634 compiler.enqueuer.codegen.registerGetOfStaticFunction(element); | 2634 compiler.enqueuer.codegen.registerGetOfStaticFunction( |
| 2635 element.declaration); |
| 2635 } else if (Elements.isErroneousElement(element)) { | 2636 } else if (Elements.isErroneousElement(element)) { |
| 2636 // An erroneous element indicates an unresolved static getter. | 2637 // An erroneous element indicates an unresolved static getter. |
| 2637 generateThrowNoSuchMethod(send, | 2638 generateThrowNoSuchMethod(send, |
| 2638 getTargetName(element, 'get'), | 2639 getTargetName(element, 'get'), |
| 2639 argumentNodes: const Link<Node>()); | 2640 argumentNodes: const Link<Node>()); |
| 2640 } else { | 2641 } else { |
| 2641 stack.add(localsHandler.readLocal(element)); | 2642 stack.add(localsHandler.readLocal(element)); |
| 2642 } | 2643 } |
| 2643 } | 2644 } |
| 2644 | 2645 |
| (...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5412 new HSubGraphBlockInformation(elseBranch.graph)); | 5413 new HSubGraphBlockInformation(elseBranch.graph)); |
| 5413 | 5414 |
| 5414 HBasicBlock conditionStartBlock = conditionBranch.block; | 5415 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 5415 conditionStartBlock.setBlockFlow(info, joinBlock); | 5416 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 5416 SubGraph conditionGraph = conditionBranch.graph; | 5417 SubGraph conditionGraph = conditionBranch.graph; |
| 5417 HIf branch = conditionGraph.end.last; | 5418 HIf branch = conditionGraph.end.last; |
| 5418 assert(branch is HIf); | 5419 assert(branch is HIf); |
| 5419 branch.blockInformation = conditionStartBlock.blockFlow; | 5420 branch.blockInformation = conditionStartBlock.blockFlow; |
| 5420 } | 5421 } |
| 5421 } | 5422 } |
| OLD | NEW |