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

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

Issue 94303002: Add another type JSPositiveInt to show a range analysis in the inferrer would be very beneficial :-… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ClassElement get fixedListImplementation => compiler.listClass; 249 ClassElement get fixedListImplementation => compiler.listClass;
250 ClassElement get constListImplementation => compiler.listClass; 250 ClassElement get constListImplementation => compiler.listClass;
251 ClassElement get mapImplementation => compiler.mapClass; 251 ClassElement get mapImplementation => compiler.mapClass;
252 ClassElement get constMapImplementation => compiler.mapClass; 252 ClassElement get constMapImplementation => compiler.mapClass;
253 ClassElement get functionImplementation => compiler.functionClass; 253 ClassElement get functionImplementation => compiler.functionClass;
254 ClassElement get typeImplementation => compiler.typeClass; 254 ClassElement get typeImplementation => compiler.typeClass;
255 ClassElement get boolImplementation => compiler.boolClass; 255 ClassElement get boolImplementation => compiler.boolClass;
256 ClassElement get nullImplementation => compiler.nullClass; 256 ClassElement get nullImplementation => compiler.nullClass;
257 ClassElement get uint32Implementation => compiler.intClass; 257 ClassElement get uint32Implementation => compiler.intClass;
258 ClassElement get uint31Implementation => compiler.intClass; 258 ClassElement get uint31Implementation => compiler.intClass;
259 ClassElement get positiveIntImplementation => compiler.intClass;
259 260
260 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass; 261 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass;
261 262
262 bool isDefaultNoSuchMethodImplementation(Element element) { 263 bool isDefaultNoSuchMethodImplementation(Element element) {
263 assert(element.name == Compiler.NO_SUCH_METHOD); 264 assert(element.name == Compiler.NO_SUCH_METHOD);
264 ClassElement classElement = element.getEnclosingClass(); 265 ClassElement classElement = element.getEnclosingClass();
265 return classElement == compiler.objectClass; 266 return classElement == compiler.objectClass;
266 } 267 }
267 268
268 bool isInterceptorClass(ClassElement element) => false; 269 bool isInterceptorClass(ClassElement element) => false;
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 1656
1656 void close() {} 1657 void close() {}
1657 1658
1658 toString() => name; 1659 toString() => name;
1659 1660
1660 /// Convenience method for getting an [api.CompilerOutputProvider]. 1661 /// Convenience method for getting an [api.CompilerOutputProvider].
1661 static NullSink outputProvider(String name, String extension) { 1662 static NullSink outputProvider(String name, String extension) {
1662 return new NullSink('$name.$extension'); 1663 return new NullSink('$name.$extension');
1663 } 1664 }
1664 } 1665 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698