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

Side by Side Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 10544030: Missed these files in last commit. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 bool visitTryInfo(HTryBlockInformation info) { 653 bool visitTryInfo(HTryBlockInformation info) {
654 addIndented("try {\n"); 654 addIndented("try {\n");
655 indent++; 655 indent++;
656 generateStatements(info.body); 656 generateStatements(info.body);
657 indent--; 657 indent--;
658 addIndented("}"); 658 addIndented("}");
659 if (info.catchBlock !== null) { 659 if (info.catchBlock !== null) {
660 // Printing the catch part. 660 // Printing the catch part.
661 HParameterValue exception = info.catchVariable; 661 HParameterValue exception = info.catchVariable;
662 String name = variableNames.getName(exception); 662 String name = variableNames.getName(exception);
663 parameterNames[exception.element] = name; 663 parameterNames[exception.sourceElement] = name;
664 buffer.add(' catch ($name) {\n'); 664 buffer.add(' catch ($name) {\n');
665 indent++; 665 indent++;
666 generateStatements(info.catchBlock); 666 generateStatements(info.catchBlock);
667 parameterNames.remove(exception.element); 667 parameterNames.remove(exception.sourceElement);
668 indent--; 668 indent--;
669 addIndented('}'); 669 addIndented('}');
670 } 670 }
671 if (info.finallyBlock != null) { 671 if (info.finallyBlock != null) {
672 buffer.add(" finally {\n"); 672 buffer.add(" finally {\n");
673 indent++; 673 indent++;
674 generateStatements(info.finallyBlock); 674 generateStatements(info.finallyBlock);
675 indent--; 675 indent--;
676 addIndented("}"); 676 addIndented("}");
677 } 677 }
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2581 startBailoutSwitch(); 2581 startBailoutSwitch();
2582 } 2582 }
2583 } 2583 }
2584 2584
2585 void endLabeledBlock(HLabeledBlockInformation labeledBlockInfo) { 2585 void endLabeledBlock(HLabeledBlockInformation labeledBlockInfo) {
2586 if (labeledBlockInfo.body.start.hasGuards()) { 2586 if (labeledBlockInfo.body.start.hasGuards()) {
2587 endBailoutSwitch(); 2587 endBailoutSwitch();
2588 } 2588 }
2589 } 2589 }
2590 } 2590 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698