Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: frog/leg/ssa/builder.dart

Issue 9475021: Refactor Constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cosmetic changes. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 } 2274 }
2275 2275
2276 visitCatchBlock(CatchBlock node) { 2276 visitCatchBlock(CatchBlock node) {
2277 visit(node.block); 2277 visit(node.block);
2278 } 2278 }
2279 2279
2280 visitTypedef(Typedef node) { 2280 visitTypedef(Typedef node) {
2281 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); 2281 compiler.unimplemented('SsaBuilder.visitTypedef', node: node);
2282 } 2282 }
2283 } 2283 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698