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

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

Issue 2681123004: Handle Native("...") annotations in KernelBehaviorBuilder. (Closed)
Patch Set: Created 3 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/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 b882bcf117c7aaa6724d3f4434017ead8047233c..7f3fc4cfd029b4c8e6d759a5b4cde2b466eca1f8 100644
--- a/pkg/compiler/lib/src/kernel/elements.dart
+++ b/pkg/compiler/lib/src/kernel/elements.dart
@@ -156,9 +156,12 @@ class KSetter extends KFunction {
}
class KField extends KMember implements FieldEntity {
+ /// Field index used for fast lookup in [KernelWorldBuilder].
+ final int fieldIndex;
final bool isAssignable;
- KField(KClass enclosingClass, Name name, {bool isStatic, this.isAssignable})
+ KField(this.fieldIndex, KClass enclosingClass, Name name,
+ {bool isStatic, this.isAssignable})
: super(enclosingClass, name, isStatic: isStatic);
@override
« 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