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

Side by Side Diff: frog/leg/compiler.dart

Issue 9271037: Inserted string validation as separate task in compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed offline comments. Created 8 years, 10 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 | frog/leg/leg.dart » ('j') | frog/leg/scanner/listener.dart » ('J')
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 WorkItem { 5 class WorkItem {
6 final Element element; 6 final Element element;
7 TreeElements resolutionTree; 7 TreeElements resolutionTree;
8 Function run; 8 Function run;
9 Map<int, BailoutInfo> bailouts = null; 9 Map<int, BailoutInfo> bailouts = null;
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 compileTimeConstantHandler = new CompileTimeConstantHandler(this); 69 compileTimeConstantHandler = new CompileTimeConstantHandler(this);
70 scanner = new ScannerTask(this); 70 scanner = new ScannerTask(this);
71 parser = new ParserTask(this); 71 parser = new ParserTask(this);
72 validator = new TreeValidatorTask(this); 72 validator = new TreeValidatorTask(this);
73 resolver = new ResolverTask(this); 73 resolver = new ResolverTask(this);
74 checker = new TypeCheckerTask(this); 74 checker = new TypeCheckerTask(this);
75 builder = new SsaBuilderTask(this); 75 builder = new SsaBuilderTask(this);
76 optimizer = new SsaOptimizerTask(this); 76 optimizer = new SsaOptimizerTask(this);
77 generator = new SsaCodeGeneratorTask(this); 77 generator = new SsaCodeGeneratorTask(this);
78 emitter = new CodeEmitterTask(this); 78 emitter = new CodeEmitterTask(this);
79 tasks = [scanner, parser, resolver, checker, builder, optimizer, generator, 79 tasks = [scanner, parser, resolver, checker, builder,
80 emitter, compileTimeConstantHandler]; 80 optimizer, generator, emitter, compileTimeConstantHandler];
karlklose 2012/01/27 09:11:59 This could go back to the previous line.
Lasse Reichstein Nielsen 2012/01/27 11:39:04 Done.
81 } 81 }
82 82
83 void ensure(bool condition) { 83 void ensure(bool condition) {
84 if (!condition) cancel('failed assertion in leg'); 84 if (!condition) cancel('failed assertion in leg');
85 } 85 }
86 86
87 void unimplemented(String methodName, 87 void unimplemented(String methodName,
88 [Node node, Token token, HInstruction instruction]) { 88 [Node node, Token token, HInstruction instruction]) {
89 cancel("$methodName not implemented", node, token, instruction); 89 cancel("$methodName not implemented", node, token, instruction);
90 } 90 }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 class CompilerCancelledException implements Exception { 299 class CompilerCancelledException implements Exception {
300 final String reason; 300 final String reason;
301 CompilerCancelledException(this.reason); 301 CompilerCancelledException(this.reason);
302 302
303 String toString() { 303 String toString() {
304 String banner = 'compiler cancelled'; 304 String banner = 'compiler cancelled';
305 return (reason !== null) ? '$banner: $reason' : '$banner'; 305 return (reason !== null) ? '$banner: $reason' : '$banner';
306 } 306 }
307 } 307 }
OLDNEW
« no previous file with comments | « no previous file | frog/leg/leg.dart » ('j') | frog/leg/scanner/listener.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698