| 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 18 matching lines...) Expand all Loading... |
| 29 return compiler.codegen(this); | 29 return compiler.codegen(this); |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 | 32 |
| 33 class Compiler implements DiagnosticListener { | 33 class Compiler implements DiagnosticListener { |
| 34 Queue<WorkItem> worklist; | 34 Queue<WorkItem> worklist; |
| 35 Universe universe; | 35 Universe universe; |
| 36 String assembledCode; | 36 String assembledCode; |
| 37 Namer namer; | 37 Namer namer; |
| 38 Types types; | 38 Types types; |
| 39 bool enableTypeAssertions = false; |
| 39 | 40 |
| 40 final Tracer tracer; | 41 final Tracer tracer; |
| 41 | 42 |
| 42 CompilerTask measuredTask; | 43 CompilerTask measuredTask; |
| 43 Element _currentElement; | 44 Element _currentElement; |
| 44 LibraryElement coreLibrary; | 45 LibraryElement coreLibrary; |
| 45 LibraryElement coreImplLibrary; | 46 LibraryElement coreImplLibrary; |
| 46 LibraryElement isolateLibrary; | 47 LibraryElement isolateLibrary; |
| 47 LibraryElement jsHelperLibrary; | 48 LibraryElement jsHelperLibrary; |
| 48 LibraryElement interceptorsLibrary; | 49 LibraryElement interceptorsLibrary; |
| (...skipping 518 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 |