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

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

Issue 14015004: Remove call-indirections from type tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 typedef void Recompile(Element element); 7 typedef void Recompile(Element element);
8 8
9 class ReturnInfo { 9 class ReturnInfo {
10 HType returnType; 10 HType returnType;
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 ? const SourceString("listSuperNativeTypeCast") 1627 ? const SourceString("listSuperNativeTypeCast")
1628 : const SourceString('listSuperNativeTypeCheck'); 1628 : const SourceString('listSuperNativeTypeCheck');
1629 } else { 1629 } else {
1630 return typeCast 1630 return typeCast
1631 ? const SourceString("listSuperTypeCast") 1631 ? const SourceString("listSuperTypeCast")
1632 : const SourceString('listSuperTypeCheck'); 1632 : const SourceString('listSuperTypeCheck');
1633 } 1633 }
1634 } else { 1634 } else {
1635 if (nativeCheck) { 1635 if (nativeCheck) {
1636 return typeCast 1636 return typeCast
1637 ? const SourceString("callTypeCast") 1637 ? const SourceString("interceptedTypeCast")
1638 : const SourceString('callTypeCheck'); 1638 : const SourceString('interceptedTypeCheck');
1639 } else { 1639 } else {
1640 return typeCast 1640 return typeCast
1641 ? const SourceString("propertyTypeCast") 1641 ? const SourceString("propertyTypeCast")
1642 : const SourceString('propertyTypeCheck'); 1642 : const SourceString('propertyTypeCheck');
1643 } 1643 }
1644 } 1644 }
1645 } 1645 }
1646 } 1646 }
1647 1647
1648 void dumpInferredTypes() { 1648 void dumpInferredTypes() {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 ClassElement get constListImplementation => jsArrayClass; 1771 ClassElement get constListImplementation => jsArrayClass;
1772 ClassElement get fixedListImplementation => jsFixedArrayClass; 1772 ClassElement get fixedListImplementation => jsFixedArrayClass;
1773 ClassElement get growableListImplementation => jsExtendableArrayClass; 1773 ClassElement get growableListImplementation => jsExtendableArrayClass;
1774 ClassElement get mapImplementation => mapLiteralClass; 1774 ClassElement get mapImplementation => mapLiteralClass;
1775 ClassElement get constMapImplementation => constMapLiteralClass; 1775 ClassElement get constMapImplementation => constMapLiteralClass;
1776 ClassElement get functionImplementation => jsFunctionClass; 1776 ClassElement get functionImplementation => jsFunctionClass;
1777 ClassElement get typeImplementation => typeLiteralClass; 1777 ClassElement get typeImplementation => typeLiteralClass;
1778 ClassElement get boolImplementation => jsBoolClass; 1778 ClassElement get boolImplementation => jsBoolClass;
1779 ClassElement get nullImplementation => jsNullClass; 1779 ClassElement get nullImplementation => jsNullClass;
1780 } 1780 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698