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

Unified Diff: pkg/compiler/lib/src/universe/codegen_world_builder.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
« no previous file with comments | « pkg/compiler/lib/src/patch_parser.dart ('k') | pkg/compiler/lib/src/universe/resolution_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/universe/codegen_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/codegen_world_builder.dart b/pkg/compiler/lib/src/universe/codegen_world_builder.dart
index c3ecea933c124db52baf6c13198bf1c017300605..a576979cd1a81e7b9c6b9817ea953c9faf990dcf 100644
--- a/pkg/compiler/lib/src/universe/codegen_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/codegen_world_builder.dart
@@ -48,7 +48,7 @@ abstract class CodegenWorldBuilder implements WorldBuilder {
}
class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
- final JavaScriptBackend _backend;
+ final NativeClassData _nativeData;
final ClosedWorld _world;
/// The set of all directly instantiated classes, that is, classes with a
@@ -117,7 +117,7 @@ class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
final SelectorConstraintsStrategy selectorConstraintsStrategy;
CodegenWorldBuilderImpl(
- this._backend, this._world, this.selectorConstraintsStrategy);
+ this._nativeData, this._world, this.selectorConstraintsStrategy);
/// Calls [f] with every instance field, together with its declarer, in an
/// instance of [cls].
@@ -164,7 +164,7 @@ class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
ResolutionInterfaceType type, ClassUsedCallback classUsed,
{bool byMirrors: false}) {
ClassElement cls = type.element;
- bool isNative = _backend.nativeData.isNativeClass(cls);
+ bool isNative = _nativeData.isNativeClass(cls);
_instantiatedTypes.add(type);
if (!cls.isAbstract
// We can't use the closed-world assumption with native abstract
@@ -411,7 +411,7 @@ class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
return _instanceMemberUsage.putIfAbsent(member, () {
String memberName = member.name;
ClassElement cls = member.enclosingClass;
- bool isNative = _backend.nativeData.isNativeClass(cls);
+ bool isNative = _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/patch_parser.dart ('k') | pkg/compiler/lib/src/universe/resolution_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698