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

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

Issue 2978613002: Convert data objects eagerly from K to J (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/native_data.dart
diff --git a/pkg/compiler/lib/src/js_backend/native_data.dart b/pkg/compiler/lib/src/js_backend/native_data.dart
index 3ff11c375d7dbc9bbc93e10d8828d373d1bb8663..1780dd53f3d2006bfda0c806fa49be259ae5f095 100644
--- a/pkg/compiler/lib/src/js_backend/native_data.dart
+++ b/pkg/compiler/lib/src/js_backend/native_data.dart
@@ -371,12 +371,12 @@ class NativeDataBuilderImpl implements NativeDataBuilder {
jsInteropMemberNames);
}
-class NativeDataImpl implements NativeData {
+class NativeDataImpl implements NativeData, NativeBasicDataImpl {
/// Prefix used to escape JS names that are not valid Dart names
/// when using JSInterop.
static const String _jsInteropEscapePrefix = r'JS$';
- final NativeBasicData _nativeBasicData;
+ final NativeBasicDataImpl _nativeBasicData;
/// The JavaScript names for native JavaScript elements implemented.
final Map<MemberEntity, String> nativeMemberName;
@@ -603,6 +603,20 @@ class NativeDataImpl implements NativeData {
? name.substring(_jsInteropEscapePrefix.length)
: name;
}
+
+ @override
+ Set<ClassEntity> get jsInteropClasses => _nativeBasicData.jsInteropClasses;
+
+ @override
+ Set<LibraryEntity> get jsInteropLibraries =>
+ _nativeBasicData.jsInteropLibraries;
+
+ @override
+ Map<ClassEntity, NativeClassTag> get nativeClassTagInfo =>
+ _nativeBasicData.nativeClassTagInfo;
+
+ @override
+ ElementEnvironment get _env => _nativeBasicData._env;
}
class NativeClassTag {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698