| 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 final JavaScriptBackend backend; | 6 final JavaScriptBackend backend; |
| 7 SsaCodeGeneratorTask(JavaScriptBackend backend) | 7 SsaCodeGeneratorTask(JavaScriptBackend backend) |
| 8 : this.backend = backend, | 8 : this.backend = backend, |
| 9 super(backend.compiler); | 9 super(backend.compiler); |
| 10 String get name() => 'SSA code generator'; | 10 String get name() => 'SSA code generator'; |
| (...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1657 endExpression(JSPrecedence.CALL_PRECEDENCE); | 1657 endExpression(JSPrecedence.CALL_PRECEDENCE); |
| 1658 } | 1658 } |
| 1659 | 1659 |
| 1660 visitInvokeClosure(HInvokeClosure node) { | 1660 visitInvokeClosure(HInvokeClosure node) { |
| 1661 beginExpression(JSPrecedence.CALL_PRECEDENCE); | 1661 beginExpression(JSPrecedence.CALL_PRECEDENCE); |
| 1662 use(node.receiver, JSPrecedence.MEMBER_PRECEDENCE); | 1662 use(node.receiver, JSPrecedence.MEMBER_PRECEDENCE); |
| 1663 buffer.add('.'); | 1663 buffer.add('.'); |
| 1664 buffer.add(compiler.namer.closureInvocationName(node.selector)); | 1664 buffer.add(compiler.namer.closureInvocationName(node.selector)); |
| 1665 visitArguments(node.inputs); | 1665 visitArguments(node.inputs); |
| 1666 // TODO(floitsch): we should have a separate list for closure invocations. | 1666 // TODO(floitsch): we should have a separate list for closure invocations. |
| 1667 world.registerDynamicInvocation(Namer.CLOSURE_INVOCATION_NAME, | 1667 world.registerDynamicInvocation(compiler.namer.CLOSURE_INVOCATION_NAME, |
| 1668 node.selector); | 1668 node.selector); |
| 1669 endExpression(JSPrecedence.CALL_PRECEDENCE); | 1669 endExpression(JSPrecedence.CALL_PRECEDENCE); |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 visitInvokeStatic(HInvokeStatic node) { | 1672 visitInvokeStatic(HInvokeStatic node) { |
| 1673 beginExpression(JSPrecedence.CALL_PRECEDENCE); | 1673 beginExpression(JSPrecedence.CALL_PRECEDENCE); |
| 1674 use(node.target, JSPrecedence.CALL_PRECEDENCE); | 1674 use(node.target, JSPrecedence.CALL_PRECEDENCE); |
| 1675 visitArguments(node.inputs); | 1675 visitArguments(node.inputs); |
| 1676 endExpression(JSPrecedence.CALL_PRECEDENCE); | 1676 endExpression(JSPrecedence.CALL_PRECEDENCE); |
| 1677 } | 1677 } |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2917 startBailoutSwitch(); | 2917 startBailoutSwitch(); |
| 2918 } | 2918 } |
| 2919 } | 2919 } |
| 2920 | 2920 |
| 2921 void endLabeledBlock(HLabeledBlockInformation labeledBlockInfo) { | 2921 void endLabeledBlock(HLabeledBlockInformation labeledBlockInfo) { |
| 2922 if (labeledBlockInfo.body.start.hasGuards()) { | 2922 if (labeledBlockInfo.body.start.hasGuards()) { |
| 2923 endBailoutSwitch(); | 2923 endBailoutSwitch(); |
| 2924 } | 2924 } |
| 2925 } | 2925 } |
| 2926 } | 2926 } |
| OLD | NEW |