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

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

Issue 10964013: Add an internal flag to the dart2js compiler to enable/diable inlining (Closed) Base URL: https://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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 final Map<String, LibraryElement> libraries; 88 final Map<String, LibraryElement> libraries;
89 int nextFreeClassId = 0; 89 int nextFreeClassId = 0;
90 World world; 90 World world;
91 String assembledCode; 91 String assembledCode;
92 Types types; 92 Types types;
93 93
94 final bool enableMinification; 94 final bool enableMinification;
95 final bool enableTypeAssertions; 95 final bool enableTypeAssertions;
96 final bool enableUserAssertions; 96 final bool enableUserAssertions;
97 97
98 bool enableInlining = true;
ahe 2012/09/21 15:00:27 The way this is used, it feels more like a "disabl
Søren Gjesse 2012/09/24 07:32:26 Done.
99
98 // TODO(5074): Remove this field once we don't accept the 100 // TODO(5074): Remove this field once we don't accept the
99 // deprecated parameter specification. 101 // deprecated parameter specification.
100 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false; 102 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false;
101 103
102 final Tracer tracer; 104 final Tracer tracer;
103 105
104 CompilerTask measuredTask; 106 CompilerTask measuredTask;
105 Element _currentElement; 107 Element _currentElement;
106 LibraryElement coreLibrary; 108 LibraryElement coreLibrary;
107 LibraryElement coreImplLibrary; 109 LibraryElement coreImplLibrary;
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 final endOffset = end.charOffset + end.slowCharCount; 945 final endOffset = end.charOffset + end.slowCharCount;
944 946
945 // [begin] and [end] might be the same for the same empty token. This 947 // [begin] and [end] might be the same for the same empty token. This
946 // happens for instance when scanning '$$'. 948 // happens for instance when scanning '$$'.
947 assert(endOffset >= beginOffset); 949 assert(endOffset >= beginOffset);
948 return f(beginOffset, endOffset); 950 return f(beginOffset, endOffset);
949 } 951 }
950 952
951 String toString() => 'SourceSpan($uri, $begin, $end)'; 953 String toString() => 'SourceSpan($uri, $begin, $end)';
952 } 954 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698