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

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

Issue 10353014: Start implementing checked mode and tools support for using it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « lib/compiler/implementation/apiimpl.dart ('k') | lib/compiler/implementation/dart2js.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 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
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
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 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/apiimpl.dart ('k') | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698