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

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

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 readableArrayType = new HBoundedType( 629 readableArrayType = new HBoundedType(
630 new TypeMask.nonNullSubclass(jsArrayClass)); 630 new TypeMask.nonNullSubclass(jsArrayClass));
631 mutableArrayType = new HBoundedType( 631 mutableArrayType = new HBoundedType(
632 new TypeMask.nonNullSubclass(jsMutableArrayClass)); 632 new TypeMask.nonNullSubclass(jsMutableArrayClass));
633 fixedArrayType = new HBoundedType( 633 fixedArrayType = new HBoundedType(
634 new TypeMask.nonNullExact(jsFixedArrayClass)); 634 new TypeMask.nonNullExact(jsFixedArrayClass));
635 extendableArrayType = new HBoundedType( 635 extendableArrayType = new HBoundedType(
636 new TypeMask.nonNullExact(jsExtendableArrayClass)); 636 new TypeMask.nonNullExact(jsExtendableArrayClass));
637 637
638 typeVariableClass = 638 typeVariableClass =
639 compiler.findHelper(const SourceString('TypeVariable')); 639 compiler.findHelper('TypeVariable');
ngeoffray 2013/10/18 10:19:37 Fits in one line.
lukas 2013/10/24 16:48:36 Done.
640 } 640 }
641 641
642 void validateInterceptorImplementsAllObjectMethods( 642 void validateInterceptorImplementsAllObjectMethods(
643 ClassElement interceptorClass) { 643 ClassElement interceptorClass) {
644 if (interceptorClass == null) return; 644 if (interceptorClass == null) return;
645 interceptorClass.ensureResolved(compiler); 645 interceptorClass.ensureResolved(compiler);
646 compiler.objectClass.forEachMember((_, Element member) { 646 compiler.objectClass.forEachMember((_, Element member) {
647 if (member.isGenerativeConstructor()) return; 647 if (member.isGenerativeConstructor()) return;
648 Element interceptorMember = interceptorClass.lookupMember(member.name); 648 Element interceptorMember = interceptorClass.lookupMember(member.name);
649 // Interceptors must override all Object methods due to calling convention 649 // Interceptors must override all Object methods due to calling convention
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 copy(constant.values); 1875 copy(constant.values);
1876 copy(constant.protoValue); 1876 copy(constant.protoValue);
1877 copy(constant); 1877 copy(constant);
1878 } 1878 }
1879 1879
1880 void visitConstructed(ConstructedConstant constant) { 1880 void visitConstructed(ConstructedConstant constant) {
1881 copy(constant.fields); 1881 copy(constant.fields);
1882 copy(constant); 1882 copy(constant);
1883 } 1883 }
1884 } 1884 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698