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

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

Issue 2668623003: Check equivalence on impact computed with KernelWorldBuilder. (Closed)
Patch Set: Created 3 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 | « pkg/compiler/lib/src/kernel/element_adapter.dart ('k') | pkg/compiler/lib/src/kernel/world_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/elements.dart
diff --git a/pkg/compiler/lib/src/kernel/elements.dart b/pkg/compiler/lib/src/kernel/elements.dart
index 3d92e5213af5aedb19849d757a4b005bd691dc93..2af98f11822eeb6dc55a07870ca0e275c7439475 100644
--- a/pkg/compiler/lib/src/kernel/elements.dart
+++ b/pkg/compiler/lib/src/kernel/elements.dart
@@ -19,9 +19,11 @@ class KLibrary implements LibraryEntity {
}
class KClass implements ClassEntity {
+ /// Class index used for fast lookup in [KernelWorldBuilder].
+ final int classIndex;
final String name;
- KClass(this.name);
+ KClass(this.classIndex, this.name);
@override
bool get isClosure => false;
@@ -168,6 +170,8 @@ class KTypeVariable implements TypeVariableEntity {
final int index;
KTypeVariable(this.typeDeclaration, this.name, this.index);
+
+ String toString() => 'type_variable(${typeDeclaration.name}.$name)';
}
class KLocalFunction implements Local {
@@ -176,4 +180,7 @@ class KLocalFunction implements Local {
final Entity executableContext;
KLocalFunction(this.name, this.memberContext, this.executableContext);
+
+ String toString() =>
+ 'local_function(${memberContext.name}.${name ?? '<anonymous>'})';
}
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_adapter.dart ('k') | pkg/compiler/lib/src/kernel/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698