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

Unified Diff: pkg/compiler/lib/src/js_backend/field_naming_mixin.dart

Issue 2727253007: Add NativeClassData/NativeClassDataBuilder (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
Index: pkg/compiler/lib/src/js_backend/field_naming_mixin.dart
diff --git a/pkg/compiler/lib/src/js_backend/field_naming_mixin.dart b/pkg/compiler/lib/src/js_backend/field_naming_mixin.dart
index d7a3ca966f64c5227914f837e6c97aa87be022c5..04a9fdab3b1cbedfe69a709df1d57c1bdc620b88 100644
--- a/pkg/compiler/lib/src/js_backend/field_naming_mixin.dart
+++ b/pkg/compiler/lib/src/js_backend/field_naming_mixin.dart
@@ -14,9 +14,8 @@ abstract class _MinifiedFieldNamer implements Namer {
// this could be because the field belongs to a mixin. In such a case this
// will return `null` and a normal field name has to be used.
jsAst.Name _minifiedInstanceFieldPropertyName(Element element) {
- if (backend.nativeData.hasFixedBackendName(element)) {
- return new StringBackedName(
- backend.nativeData.getFixedBackendName(element));
+ if (_nativeData.hasFixedBackendName(element)) {
+ return new StringBackedName(_nativeData.getFixedBackendName(element));
}
_FieldNamingScope names;
@@ -24,7 +23,7 @@ abstract class _MinifiedFieldNamer implements Namer {
names = new _FieldNamingScope.forBox(element.box, fieldRegistry);
} else {
ClassElement cls = element.enclosingClass;
- names = new _FieldNamingScope.forClass(cls, closedWorld, fieldRegistry);
+ names = new _FieldNamingScope.forClass(cls, _closedWorld, fieldRegistry);
}
if (names.containsField(element)) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart ('k') | pkg/compiler/lib/src/js_backend/frequency_namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698