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

Unified Diff: pkg/compiler/lib/src/universe/world_builder.dart

Issue 2721403006: Split NativeData (Closed)
Patch Set: Updated cf. comments. Created 3 years, 9 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/types/types.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/world_builder.dart b/pkg/compiler/lib/src/universe/world_builder.dart
index 38beb3de84f282352527fe879b6adb0c9a4e56cc..27c07155b97e1d6bd4db35336696c4ef8b0399ef 100644
--- a/pkg/compiler/lib/src/universe/world_builder.dart
+++ b/pkg/compiler/lib/src/universe/world_builder.dart
@@ -560,7 +560,7 @@ class ResolutionWorldBuilderImpl implements ResolutionWorldBuilder {
InstantiationInfo info =
_instantiationInfo.putIfAbsent(cls, () => new InstantiationInfo());
Instantiation kind = Instantiation.UNINSTANTIATED;
- bool isNative = _backend.isNative(cls);
+ bool isNative = _backend.nativeData.isNativeClass(cls);
if (!cls.isAbstract ||
// We can't use the closed-world assumption with native abstract
// classes; a native abstract class may have non-abstract subclasses
@@ -871,7 +871,7 @@ class ResolutionWorldBuilderImpl implements ResolutionWorldBuilder {
// Note: this assumes that there are no non-native fields on native
// classes, which may not be the case when a native class is subclassed.
_instanceMemberUsage.putIfAbsent(member, () {
- bool isNative = _backend.isNative(cls);
+ bool isNative = _backend.nativeData.isNativeClass(cls);
_MemberUsage usage = new _MemberUsage(member, isNative: isNative);
EnumSet<MemberUse> useSet = new EnumSet<MemberUse>();
useSet.addAll(usage.appliedUse);
@@ -1260,7 +1260,7 @@ class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
ResolutionInterfaceType type, ClassUsedCallback classUsed,
{bool byMirrors: false}) {
ClassElement cls = type.element;
- bool isNative = _backend.isNative(cls);
+ bool isNative = _backend.nativeData.isNativeClass(cls);
_instantiatedTypes.add(type);
if (!cls.isAbstract
// We can't use the closed-world assumption with native abstract
@@ -1502,7 +1502,7 @@ class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
return _instanceMemberUsage.putIfAbsent(member, () {
String memberName = member.name;
ClassElement cls = member.enclosingClass;
- bool isNative = _backend.isNative(cls);
+ bool isNative = _backend.nativeData.isNativeClass(cls);
_MemberUsage usage = new _MemberUsage(member, isNative: isNative);
EnumSet<MemberUse> useSet = new EnumSet<MemberUse>();
useSet.addAll(usage.appliedUse);
« no previous file with comments | « pkg/compiler/lib/src/types/types.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698