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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart

Issue 1747213002: dart2js cps: Remove receiverIsNotNull from CPS nodes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « pkg/compiler/lib/src/cps_ir/cps_fragment.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index 905d1569166e2589dc8eb62d6d474cd521e7a508..411d3b900466123838faf8b5bfca698771388425 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -638,9 +638,6 @@ class InvokeMethod extends InvocationPrimitive {
: receiverRef;
}
- /// If true, it is known that the receiver cannot be `null`.
- bool receiverIsNotNull = false;
-
InvokeMethod(Primitive receiver,
this.selector,
this.mask,
@@ -1159,13 +1156,10 @@ class ApplyBuiltinMethod extends Primitive {
Primitive argument(int n) => argumentRefs[n].definition;
Iterable<Primitive> get arguments => _dereferenceList(argumentRefs);
- bool receiverIsNotNull;
-
ApplyBuiltinMethod(this.method,
Primitive receiver,
List<Primitive> arguments,
- this.sourceInformation,
- {this.receiverIsNotNull: false})
+ this.sourceInformation)
: this.receiverRef = new Reference<Primitive>(receiver),
this.argumentRefs = _referenceList(arguments);
@@ -2950,8 +2944,7 @@ class DefinitionCopyingVisitor extends Visitor<Definition> {
Definition visitApplyBuiltinMethod(ApplyBuiltinMethod node) {
return new ApplyBuiltinMethod(node.method, getCopy(node.receiverRef),
getList(node.argumentRefs),
- node.sourceInformation,
- receiverIsNotNull: node.receiverIsNotNull);
+ node.sourceInformation);
}
Definition visitGetLength(GetLength node) {
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_fragment.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698