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

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

Issue 23496037: Turn a Dart String + String into a JavaScript String + String. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/ssa/codegen.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 class JavaScriptItemCompilationContext extends ItemCompilationContext { 7 class JavaScriptItemCompilationContext extends ItemCompilationContext {
8 final Set<HInstruction> boundsChecked; 8 final Set<HInstruction> boundsChecked;
9 9
10 JavaScriptItemCompilationContext() 10 JavaScriptItemCompilationContext()
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ClassElement jsMutableIndexableClass; 183 ClassElement jsMutableIndexableClass;
184 184
185 ClassElement jsMutableArrayClass; 185 ClassElement jsMutableArrayClass;
186 ClassElement jsFixedArrayClass; 186 ClassElement jsFixedArrayClass;
187 ClassElement jsExtendableArrayClass; 187 ClassElement jsExtendableArrayClass;
188 188
189 Element jsIndexableLength; 189 Element jsIndexableLength;
190 Element jsArrayRemoveLast; 190 Element jsArrayRemoveLast;
191 Element jsArrayAdd; 191 Element jsArrayAdd;
192 Element jsStringSplit; 192 Element jsStringSplit;
193 Element jsStringConcat;
194 Element jsStringToString; 193 Element jsStringToString;
194 Element jsStringOperatorAdd;
195 Element objectEquals; 195 Element objectEquals;
196 196
197 ClassElement typeLiteralClass; 197 ClassElement typeLiteralClass;
198 ClassElement mapLiteralClass; 198 ClassElement mapLiteralClass;
199 ClassElement constMapLiteralClass; 199 ClassElement constMapLiteralClass;
200 200
201 Element getInterceptorMethod; 201 Element getInterceptorMethod;
202 Element interceptedNames; 202 Element interceptedNames;
203 203
204 /** 204 /**
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 607
608 jsArrayClass.ensureResolved(compiler); 608 jsArrayClass.ensureResolved(compiler);
609 jsArrayRemoveLast = compiler.lookupElementIn( 609 jsArrayRemoveLast = compiler.lookupElementIn(
610 jsArrayClass, const SourceString('removeLast')); 610 jsArrayClass, const SourceString('removeLast'));
611 jsArrayAdd = compiler.lookupElementIn( 611 jsArrayAdd = compiler.lookupElementIn(
612 jsArrayClass, const SourceString('add')); 612 jsArrayClass, const SourceString('add'));
613 613
614 jsStringClass.ensureResolved(compiler); 614 jsStringClass.ensureResolved(compiler);
615 jsStringSplit = compiler.lookupElementIn( 615 jsStringSplit = compiler.lookupElementIn(
616 jsStringClass, const SourceString('split')); 616 jsStringClass, const SourceString('split'));
617 jsStringConcat = compiler.lookupElementIn( 617 jsStringOperatorAdd = compiler.lookupElementIn(
618 jsStringClass, const SourceString('concat')); 618 jsStringClass, const SourceString('+'));
619 jsStringToString = compiler.lookupElementIn( 619 jsStringToString = compiler.lookupElementIn(
620 jsStringClass, const SourceString('toString')); 620 jsStringClass, const SourceString('toString'));
621 621
622 typeLiteralClass = compiler.findHelper(const SourceString('TypeImpl')); 622 typeLiteralClass = compiler.findHelper(const SourceString('TypeImpl'));
623 mapLiteralClass = 623 mapLiteralClass =
624 compiler.coreLibrary.find(const SourceString('LinkedHashMap')); 624 compiler.coreLibrary.find(const SourceString('LinkedHashMap'));
625 constMapLiteralClass = 625 constMapLiteralClass =
626 compiler.findHelper(const SourceString('ConstantMap')); 626 compiler.findHelper(const SourceString('ConstantMap'));
627 627
628 objectEquals = compiler.lookupElementIn( 628 objectEquals = compiler.lookupElementIn(
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 copy(constant.values); 1779 copy(constant.values);
1780 copy(constant.protoValue); 1780 copy(constant.protoValue);
1781 copy(constant); 1781 copy(constant);
1782 } 1782 }
1783 1783
1784 void visitConstructed(ConstructedConstant constant) { 1784 void visitConstructed(ConstructedConstant constant) {
1785 copy(constant.fields); 1785 copy(constant.fields);
1786 copy(constant); 1786 copy(constant);
1787 } 1787 }
1788 } 1788 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698