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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.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.js_emitter; 5 part of dart2js.js_emitter;
6 6
7 /** 7 /**
8 * Generates the code for all used classes in the program. Static fields (even 8 * Generates the code for all used classes in the program. Static fields (even
9 * in classes) are ignored, since they can be treated as non-class elements. 9 * in classes) are ignored, since they can be treated as non-class elements.
10 * 10 *
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 unneededClasses.add(interceptor); 793 unneededClasses.add(interceptor);
794 } 794 }
795 } 795 }
796 796
797 // These classes are just helpers for the backend's type system. 797 // These classes are just helpers for the backend's type system.
798 unneededClasses.add(backend.jsMutableArrayClass); 798 unneededClasses.add(backend.jsMutableArrayClass);
799 unneededClasses.add(backend.jsFixedArrayClass); 799 unneededClasses.add(backend.jsFixedArrayClass);
800 unneededClasses.add(backend.jsExtendableArrayClass); 800 unneededClasses.add(backend.jsExtendableArrayClass);
801 unneededClasses.add(backend.jsUInt32Class); 801 unneededClasses.add(backend.jsUInt32Class);
802 unneededClasses.add(backend.jsUInt31Class); 802 unneededClasses.add(backend.jsUInt31Class);
803 unneededClasses.add(backend.jsPositiveIntClass);
803 804
804 return (ClassElement cls) => !unneededClasses.contains(cls); 805 return (ClassElement cls) => !unneededClasses.contains(cls);
805 } 806 }
806 807
807 void emitFinishClassesInvocationIfNecessary(CodeBuffer buffer) { 808 void emitFinishClassesInvocationIfNecessary(CodeBuffer buffer) {
808 if (needsDefineClass) { 809 if (needsDefineClass) {
809 buffer.write('$finishClassesName($classesCollector,' 810 buffer.write('$finishClassesName($classesCollector,'
810 '$_$isolateProperties,' 811 '$_$isolateProperties,'
811 '${_}null)$N'); 812 '${_}null)$N');
812 813
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 } 1600 }
1600 1601
1601 bool isDeferred(Element element) { 1602 bool isDeferred(Element element) {
1602 return compiler.deferredLoadTask.isDeferred(element); 1603 return compiler.deferredLoadTask.isDeferred(element);
1603 } 1604 }
1604 1605
1605 bool get areAnyElementsDeferred { 1606 bool get areAnyElementsDeferred {
1606 return compiler.deferredLoadTask.areAnyElementsDeferred; 1607 return compiler.deferredLoadTask.areAnyElementsDeferred;
1607 } 1608 }
1608 } 1609 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698