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

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

Issue 1223813006: dart2js cps: Direct access on JS arrays. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update unit tests and remove unused functions Created 5 years, 5 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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 cachedCheckConcurrentModificationError = 1730 cachedCheckConcurrentModificationError =
1731 findHelper('checkConcurrentModificationError'); 1731 findHelper('checkConcurrentModificationError');
1732 } 1732 }
1733 return cachedCheckConcurrentModificationError; 1733 return cachedCheckConcurrentModificationError;
1734 } 1734 }
1735 1735
1736 Element getThrowConcurrentModificationError() { 1736 Element getThrowConcurrentModificationError() {
1737 return findHelper('throwConcurrentModificationError'); 1737 return findHelper('throwConcurrentModificationError');
1738 } 1738 }
1739 1739
1740 Element getThrowIndexOutOfBoundsError() {
1741 return findHelper('ioore');
1742 }
1743
1740 Element getStringInterpolationHelper() { 1744 Element getStringInterpolationHelper() {
1741 return findHelper('S'); 1745 return findHelper('S');
1742 } 1746 }
1743 1747
1744 Element getWrapExceptionHelper() { 1748 Element getWrapExceptionHelper() {
1745 return findHelper(r'wrapException'); 1749 return findHelper(r'wrapException');
1746 } 1750 }
1747 1751
1748 Element getThrowExpressionHelper() { 1752 Element getThrowExpressionHelper() {
1749 return findHelper('throwExpression'); 1753 return findHelper('throwExpression');
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
3005 } 3009 }
3006 } 3010 }
3007 3011
3008 /// Records that [constant] is used by the element behind [registry]. 3012 /// Records that [constant] is used by the element behind [registry].
3009 class Dependency { 3013 class Dependency {
3010 final ConstantValue constant; 3014 final ConstantValue constant;
3011 final Element annotatedElement; 3015 final Element annotatedElement;
3012 3016
3013 const Dependency(this.constant, this.annotatedElement); 3017 const Dependency(this.constant, this.annotatedElement);
3014 } 3018 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698