| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 String get legDirectory() { | 505 String get legDirectory() { |
| 506 unimplemented('Compiler.legDirectory'); | 506 unimplemented('Compiler.legDirectory'); |
| 507 } | 507 } |
| 508 | 508 |
| 509 Element findHelper(SourceString name) | 509 Element findHelper(SourceString name) |
| 510 => jsHelperLibrary.findLocal(name); | 510 => jsHelperLibrary.findLocal(name); |
| 511 Element findInterceptor(SourceString name) | 511 Element findInterceptor(SourceString name) |
| 512 => interceptorsLibrary.findLocal(name); | 512 => interceptorsLibrary.findLocal(name); |
| 513 | 513 |
| 514 bool get isMockCompilation() => false; | 514 bool get isMockCompilation() => false; |
| 515 bool get isCheckedModeEnabled() => false; |
| 515 } | 516 } |
| 516 | 517 |
| 517 class CompilerTask { | 518 class CompilerTask { |
| 518 final Compiler compiler; | 519 final Compiler compiler; |
| 519 final Stopwatch watch; | 520 final Stopwatch watch; |
| 520 | 521 |
| 521 CompilerTask(this.compiler) : watch = new Stopwatch(); | 522 CompilerTask(this.compiler) : watch = new Stopwatch(); |
| 522 | 523 |
| 523 String get name() => 'Unknown task'; | 524 String get name() => 'Unknown task'; |
| 524 int get timing() => watch.elapsedInMs(); | 525 int get timing() => watch.elapsedInMs(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 } | 568 } |
| 568 } | 569 } |
| 569 | 570 |
| 570 class SourceSpan { | 571 class SourceSpan { |
| 571 final Uri uri; | 572 final Uri uri; |
| 572 final int begin; | 573 final int begin; |
| 573 final int end; | 574 final int end; |
| 574 | 575 |
| 575 const SourceSpan(this.uri, this.begin, this.end); | 576 const SourceSpan(this.uri, this.begin, this.end); |
| 576 } | 577 } |
| OLD | NEW |