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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1153603006: dart2js cps: Type casts and related changes to type propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Adjust comments Created 5 years, 6 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
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 js_backend; 5 part of js_backend;
6 6
7 const VERBOSE_OPTIMIZER_HINTS = false; 7 const VERBOSE_OPTIMIZER_HINTS = false;
8 8
9 class JavaScriptItemCompilationContext extends ItemCompilationContext { 9 class JavaScriptItemCompilationContext extends ItemCompilationContext {
10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>();
(...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1759 } 1759 }
1760 1760
1761 Element getCheckSubtype() { 1761 Element getCheckSubtype() {
1762 return findHelper('checkSubtype'); 1762 return findHelper('checkSubtype');
1763 } 1763 }
1764 1764
1765 Element getAssertSubtype() { 1765 Element getAssertSubtype() {
1766 return findHelper('assertSubtype'); 1766 return findHelper('assertSubtype');
1767 } 1767 }
1768 1768
1769 Element getSubtypeCast() {
1770 return findHelper('subtypeCast');
1771 }
1772
1769 Element getCheckSubtypeOfRuntimeType() { 1773 Element getCheckSubtypeOfRuntimeType() {
1770 return findHelper('checkSubtypeOfRuntimeType'); 1774 return findHelper('checkSubtypeOfRuntimeType');
1771 } 1775 }
1772 1776
1777 Element getAssertSubtypeOfRuntimeType() {
1778 return findHelper('assertSubtypeOfRuntimeType');
1779 }
1780
1781 Element getSubtypeOfRuntimeTypeCast() {
1782 return findHelper('subtypeOfRuntimeTypeCast');
1783 }
1784
1773 Element getCheckDeferredIsLoaded() { 1785 Element getCheckDeferredIsLoaded() {
1774 return findHelper('checkDeferredIsLoaded'); 1786 return findHelper('checkDeferredIsLoaded');
1775 } 1787 }
1776 1788
1777 Element getAssertSubtypeOfRuntimeType() {
1778 return findHelper('assertSubtypeOfRuntimeType');
1779 }
1780
1781 Element getThrowNoSuchMethod() { 1789 Element getThrowNoSuchMethod() {
1782 return findHelper('throwNoSuchMethod'); 1790 return findHelper('throwNoSuchMethod');
1783 } 1791 }
1784 1792
1785 Element getCreateRuntimeType() { 1793 Element getCreateRuntimeType() {
1786 return findHelper('createRuntimeType'); 1794 return findHelper('createRuntimeType');
1787 } 1795 }
1788 1796
1789 Element getFallThroughError() { 1797 Element getFallThroughError() {
1790 return findHelper("getFallThroughError"); 1798 return findHelper("getFallThroughError");
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2951 } 2959 }
2952 } 2960 }
2953 2961
2954 /// Records that [constant] is used by the element behind [registry]. 2962 /// Records that [constant] is used by the element behind [registry].
2955 class Dependency { 2963 class Dependency {
2956 final ConstantValue constant; 2964 final ConstantValue constant;
2957 final Element annotatedElement; 2965 final Element annotatedElement;
2958 2966
2959 const Dependency(this.constant, this.annotatedElement); 2967 const Dependency(this.constant, this.annotatedElement);
2960 } 2968 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698