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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/constants.dart

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/runtime/vm/vm.gypi ('k') | dart/sdk/lib/_internal/compiler/implementation/ir/ir_pickler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/constants.dart
===================================================================
--- dart/sdk/lib/_internal/compiler/implementation/constants.dart (revision 31530)
+++ dart/sdk/lib/_internal/compiler/implementation/constants.dart (working copy)
@@ -17,7 +17,6 @@
R visitConstructed(ConstructedConstant constant);
R visitType(TypeConstant constant);
R visitInterceptor(InterceptorConstant constant);
- R visitDummyReceiver(DummyReceiverConstant constant);
}
abstract class Constant {
@@ -42,7 +41,6 @@
bool isType() => false;
bool isSentinel() => false;
bool isInterceptor() => false;
- bool isDummyReceiver() => false;
bool isNaN() => false;
bool isMinusZero() => false;
@@ -540,33 +538,6 @@
}
}
-class DummyReceiverConstant extends Constant {
- final ti.TypeMask typeMask;
-
- DummyReceiverConstant(this.typeMask);
-
- bool isDummyReceiver() => true;
-
- bool operator ==(other) {
- return other is DummyReceiverConstant
- && typeMask == other.typeMask;
- }
-
- get hashCode => typeMask.hashCode;
-
- List<Constant> getDependencies() => const <Constant>[];
-
- accept(ConstantVisitor visitor) => visitor.visitDummyReceiver(this);
-
- DartType computeType(Compiler compiler) => compiler.types.dynamicType;
-
- ti.TypeMask computeMask(Compiler compiler) => typeMask;
-
- String toString() {
- return 'DummyReceiverConstant($typeMask)';
- }
-}
-
class ConstructedConstant extends ObjectConstant {
final List<Constant> fields;
final int hashCode;
« no previous file with comments | « dart/runtime/vm/vm.gypi ('k') | dart/sdk/lib/_internal/compiler/implementation/ir/ir_pickler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698