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

Unified Diff: pkg/compiler/lib/src/elements/entities.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Skip non-live constructor bodies Created 3 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 | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/entities.dart
diff --git a/pkg/compiler/lib/src/elements/entities.dart b/pkg/compiler/lib/src/elements/entities.dart
index 5779cd8d5dd8f0c4491b723e2b20f9c7df967e6f..80e8489fd8ed9dba8458886644bb15fa6e82443c 100644
--- a/pkg/compiler/lib/src/elements/entities.dart
+++ b/pkg/compiler/lib/src/elements/entities.dart
@@ -206,6 +206,17 @@ abstract class ConstructorEntity extends FunctionEntity {
bool get isFromEnvironmentConstructor;
}
+/// The constructor body for a [ConstructorEntity].
+///
+/// This is used only in the backend to split encoding of a Dart constructor
+/// into two JavaScript functions; the constructor and the constructor body.
+// TODO(johnniwinther): Remove this when modelx is removed. Constructor bodies
+// should then be created directly with the J-model.
+abstract class ConstructorBodyEntity extends FunctionEntity {
+ /// The constructor for which this constructor body was created.
+ ConstructorEntity get constructor;
+}
+
/// An entity that defines a local entity (memory slot) in generated code.
///
/// Parameters, local variables and local functions (can) define local entity
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698