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

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

Issue 1274073003: Refactor visitSendSet for super compounds and assignment. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 2962 matching lines...) Expand 10 before | Expand all | Expand 10 after
2973 } 2973 }
2974 2974
2975 void onSuperNoSuchMethod(Registry registry) { 2975 void onSuperNoSuchMethod(Registry registry) {
2976 assert(registry.isForResolution); 2976 assert(registry.isForResolution);
2977 registerBackendStaticInvocation( 2977 registerBackendStaticInvocation(
2978 backend.getCreateInvocationMirror(), registry); 2978 backend.getCreateInvocationMirror(), registry);
2979 registerBackendStaticInvocation( 2979 registerBackendStaticInvocation(
2980 backend.compiler.objectClass.lookupLocalMember(Compiler.NO_SUCH_METHOD), 2980 backend.compiler.objectClass.lookupLocalMember(Compiler.NO_SUCH_METHOD),
2981 registry); 2981 registry);
2982 registerBackendInstantiation(backend.compiler.listClass, registry); 2982 registerBackendInstantiation(backend.compiler.listClass, registry);
2983 registerBackendInstantiation(backend.compiler.stringClass, registry);
2983 } 2984 }
2984 2985
2985 void onMapLiteral(ResolutionRegistry registry, 2986 void onMapLiteral(ResolutionRegistry registry,
2986 DartType type, 2987 DartType type,
2987 bool isConstant) { 2988 bool isConstant) {
2988 assert(registry.isForResolution); 2989 assert(registry.isForResolution);
2989 void enqueue(String name) { 2990 void enqueue(String name) {
2990 Element e = backend.find(backend.jsHelperLibrary, name); 2991 Element e = backend.find(backend.jsHelperLibrary, name);
2991 registerBackendInstantiation(e, registry); 2992 registerBackendInstantiation(e, registry);
2992 } 2993 }
(...skipping 18 matching lines...) Expand all
3011 } 3012 }
3012 } 3013 }
3013 3014
3014 /// Records that [constant] is used by the element behind [registry]. 3015 /// Records that [constant] is used by the element behind [registry].
3015 class Dependency { 3016 class Dependency {
3016 final ConstantValue constant; 3017 final ConstantValue constant;
3017 final Element annotatedElement; 3018 final Element annotatedElement;
3018 3019
3019 const Dependency(this.constant, this.annotatedElement); 3020 const Dependency(this.constant, this.annotatedElement);
3020 } 3021 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/members.dart » ('j') | pkg/compiler/lib/src/resolution/members.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698