| 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 Interceptors { | 5 class Interceptors { |
| 6 Compiler compiler; | 6 Compiler compiler; |
| 7 Interceptors(Compiler this.compiler); | 7 Interceptors(Compiler this.compiler); |
| 8 | 8 |
| 9 SourceString mapOperatorToMethodName(Operator op) { | 9 SourceString mapOperatorToMethodName(Operator op) { |
| 10 String name = op.source.stringValue; | 10 String name = op.source.stringValue; |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 void close(); | 552 void close(); |
| 553 List<SourceString> labels(); | 553 List<SourceString> labels(); |
| 554 } | 554 } |
| 555 | 555 |
| 556 // Inert break handler used to avoid null checks when a loop isn't | 556 // Inert break handler used to avoid null checks when a loop isn't |
| 557 // used as the target of a break, and therefore doesn't need a break | 557 // used as the target of a break, and therefore doesn't need a break |
| 558 // handler associated with it. | 558 // handler associated with it. |
| 559 class NullBreakHandler implements BreakHandler { | 559 class NullBreakHandler implements BreakHandler { |
| 560 const NullBreakHandler(); | 560 const NullBreakHandler(); |
| 561 void addTarget(StatementElement element) { unreachable(); } | 561 void addTarget(StatementElement element) { unreachable(); } |
| 562 void addBreak(HBreak breakInstruction) { unreachable() } | 562 void addBreak(HBreak breakInstruction) { unreachable(); } |
| 563 void forEachBreak(Function ignored) { } | 563 void forEachBreak(Function ignored) { } |
| 564 void close() { } | 564 void close() { } |
| 565 List<SourceString> labels() => const <SourceString>[]; | 565 List<SourceString> labels() => const <SourceString>[]; |
| 566 } | 566 } |
| 567 | 567 |
| 568 // Records breaks until a target block is available. | 568 // Records breaks until a target block is available. |
| 569 // Breaks are always forward jumps. | 569 // Breaks are always forward jumps. |
| 570 class BreakHandlerImpl implements BreakHandler{ | 570 class BreakHandlerImpl implements BreakHandler{ |
| 571 final BreakHandler previous; | 571 final BreakHandler previous; |
| 572 final SsaBuilder builder; | 572 final SsaBuilder builder; |
| (...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2278 } | 2278 } |
| 2279 | 2279 |
| 2280 visitCatchBlock(CatchBlock node) { | 2280 visitCatchBlock(CatchBlock node) { |
| 2281 visit(node.block); | 2281 visit(node.block); |
| 2282 } | 2282 } |
| 2283 | 2283 |
| 2284 visitTypedef(Typedef node) { | 2284 visitTypedef(Typedef node) { |
| 2285 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); | 2285 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); |
| 2286 } | 2286 } |
| 2287 } | 2287 } |
| OLD | NEW |