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

Side by Side Diff: pkg/compiler/lib/src/universe/universe.dart

Issue 1152903003: Create SendStructure for unary and binary in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 library universe; 5 library universe;
6 6
7 import '../elements/elements.dart'; 7 import '../elements/elements.dart';
8 import '../dart2jslib.dart'; 8 import '../dart2jslib.dart';
9 import '../dart_types.dart'; 9 import '../dart_types.dart';
10 import '../types/types.dart'; 10 import '../types/types.dart';
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 } 617 }
618 } 618 }
619 619
620 factory Selector.getter(String name, LibraryElement library) 620 factory Selector.getter(String name, LibraryElement library)
621 => new Selector(SelectorKind.GETTER, 621 => new Selector(SelectorKind.GETTER,
622 new Name(name, library), 622 new Name(name, library),
623 CallStructure.NO_ARGS); 623 CallStructure.NO_ARGS);
624 624
625 factory Selector.getterFrom(Selector selector) 625 factory Selector.getterFrom(Selector selector)
626 => new Selector(SelectorKind.GETTER, 626 => new Selector(SelectorKind.GETTER,
627 selector.memberName, 627 selector.memberName.getter,
628 CallStructure.NO_ARGS); 628 CallStructure.NO_ARGS);
629 629
630 factory Selector.setter(String name, LibraryElement library) 630 factory Selector.setter(String name, LibraryElement library)
631 => new Selector(SelectorKind.SETTER, 631 => new Selector(SelectorKind.SETTER,
632 new Name(name, library, isSetter: true), 632 new Name(name, library, isSetter: true),
633 CallStructure.ONE_ARG); 633 CallStructure.ONE_ARG);
634 634
635 factory Selector.unaryOperator(String name) => new Selector( 635 factory Selector.unaryOperator(String name) => new Selector(
636 SelectorKind.OPERATOR, 636 SelectorKind.OPERATOR,
637 new PublicName(Elements.constructOperatorName(name, true)), 637 new PublicName(Elements.constructOperatorName(name, true)),
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 Selector extendIfReachesAll(Compiler compiler) { 861 Selector extendIfReachesAll(Compiler compiler) {
862 bool canReachAll = compiler.enabledInvokeOn 862 bool canReachAll = compiler.enabledInvokeOn
863 && mask.needsNoSuchMethodHandling(this, compiler.world); 863 && mask.needsNoSuchMethodHandling(this, compiler.world);
864 return canReachAll 864 return canReachAll
865 ? new TypedSelector( 865 ? new TypedSelector(
866 compiler.typesTask.dynamicType, this, compiler.world) 866 compiler.typesTask.dynamicType, this, compiler.world)
867 : this; 867 : this;
868 } 868 }
869 } 869 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698