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

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

Issue 10911211: Runtime support for the new parameter specification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 const bool REPORT_EXCESS_RESOLUTION = false; 10 const bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 final Map<String, LibraryElement> libraries; 83 final Map<String, LibraryElement> libraries;
84 int nextFreeClassId = 0; 84 int nextFreeClassId = 0;
85 World world; 85 World world;
86 String assembledCode; 86 String assembledCode;
87 Types types; 87 Types types;
88 88
89 final bool enableMinification; 89 final bool enableMinification;
90 final bool enableTypeAssertions; 90 final bool enableTypeAssertions;
91 final bool enableUserAssertions; 91 final bool enableUserAssertions;
92 92
93 // TODO(5074): Remove this field once we don't accept the
94 // deprecated parameter specification.
95 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false;
96
93 final Tracer tracer; 97 final Tracer tracer;
94 98
95 CompilerTask measuredTask; 99 CompilerTask measuredTask;
96 Element _currentElement; 100 Element _currentElement;
97 LibraryElement coreLibrary; 101 LibraryElement coreLibrary;
98 LibraryElement coreImplLibrary; 102 LibraryElement coreImplLibrary;
99 LibraryElement isolateLibrary; 103 LibraryElement isolateLibrary;
100 LibraryElement jsHelperLibrary; 104 LibraryElement jsHelperLibrary;
101 LibraryElement interceptorsLibrary; 105 LibraryElement interceptorsLibrary;
102 LibraryElement mainApp; 106 LibraryElement mainApp;
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 final endOffset = end.charOffset + end.slowCharCount; 924 final endOffset = end.charOffset + end.slowCharCount;
921 925
922 // [begin] and [end] might be the same for the same empty token. This 926 // [begin] and [end] might be the same for the same empty token. This
923 // happens for instance when scanning '$$'. 927 // happens for instance when scanning '$$'.
924 assert(endOffset >= beginOffset); 928 assert(endOffset >= beginOffset);
925 return f(beginOffset, endOffset); 929 return f(beginOffset, endOffset);
926 } 930 }
927 931
928 String toString() => 'SourceSpan($uri, $begin, $end)'; 932 String toString() => 'SourceSpan($uri, $begin, $end)';
929 } 933 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | lib/compiler/implementation/js_backend/emitter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698