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

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

Issue 1238163003: dart2js cps: Share interceptors by default and propagate to use later. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Renamed to let_sinking.dart Created 5 years, 5 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 | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_tracer.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 37e91fe15c09214d1a826163661a57e93dcd4d6c..90a13aa23e41a905a28fc3ba4c27c4fd80df3efb 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -854,9 +854,11 @@ class CreateInstance extends Primitive {
class Interceptor extends Primitive {
final Reference<Primitive> input;
- final Set<ClassElement> interceptedClasses;
- Interceptor(Primitive input, this.interceptedClasses)
+ final Set<ClassElement> interceptedClasses = new Set<ClassElement>();
+
+ Interceptor(Primitive input)
: this.input = new Reference<Primitive>(input);
+
accept(Visitor visitor) => visitor.visitInterceptor(this);
bool get isSafeForElimination => true;
@@ -1010,7 +1012,7 @@ class Continuation extends Definition<Continuation> implements InteriorNode {
class MutableVariable extends Definition {
Entity hint;
-MutableVariable(this.hint);
+ MutableVariable(this.hint);
accept(Visitor v) => v.visitMutableVariable(this);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698