Chromium Code Reviews| 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 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 bool allowSpeculativeOptimization = true; | 9 bool allowSpeculativeOptimization = true; |
| 10 List<HTypeGuard> guards = const <HTypeGuard>[]; | 10 List<HTypeGuard> guards = const <HTypeGuard>[]; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 namer = new Namer(this); | 103 namer = new Namer(this); |
| 104 constantHandler = new ConstantHandler(this); | 104 constantHandler = new ConstantHandler(this); |
| 105 scanner = new ScannerTask(this); | 105 scanner = new ScannerTask(this); |
| 106 dietParser = new DietParserTask(this); | 106 dietParser = new DietParserTask(this); |
| 107 parser = new ParserTask(this); | 107 parser = new ParserTask(this); |
| 108 validator = new TreeValidatorTask(this); | 108 validator = new TreeValidatorTask(this); |
| 109 resolver = new ResolverTask(this); | 109 resolver = new ResolverTask(this); |
| 110 checker = new TypeCheckerTask(this); | 110 checker = new TypeCheckerTask(this); |
| 111 builder = new SsaBuilderTask(this); | 111 builder = new SsaBuilderTask(this); |
| 112 optimizer = new SsaOptimizerTask(this); | 112 optimizer = new SsaOptimizerTask(this); |
| 113 Send fakeSend = new Send(null, Selector.); | |
|
messick
2012/04/06 17:11:47
Is this intentional?
| |
| 113 generator = new SsaCodeGeneratorTask(this); | 114 generator = new SsaCodeGeneratorTask(this); |
| 114 emitter = new CodeEmitterTask(this); | 115 emitter = new CodeEmitterTask(this); |
| 115 enqueuer = new EnqueueTask(this); | 116 enqueuer = new EnqueueTask(this); |
| 116 tasks = [scanner, dietParser, parser, resolver, checker, | 117 tasks = [scanner, dietParser, parser, resolver, checker, |
| 117 builder, optimizer, generator, | 118 builder, optimizer, generator, |
| 118 emitter, constantHandler, enqueuer]; | 119 emitter, constantHandler, enqueuer]; |
| 119 } | 120 } |
| 120 | 121 |
| 121 void ensure(bool condition) { | 122 void ensure(bool condition) { |
| 122 if (!condition) cancel('failed assertion in leg'); | 123 if (!condition) cancel('failed assertion in leg'); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 541 } | 542 } |
| 542 } | 543 } |
| 543 | 544 |
| 544 class SourceSpan { | 545 class SourceSpan { |
| 545 final Uri uri; | 546 final Uri uri; |
| 546 final int begin; | 547 final int begin; |
| 547 final int end; | 548 final int end; |
| 548 | 549 |
| 549 const SourceSpan(this.uri, this.begin, this.end); | 550 const SourceSpan(this.uri, this.begin, this.end); |
| 550 } | 551 } |
| OLD | NEW |