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

Unified Diff: pkg/compiler/lib/src/js_backend/custom_elements_analysis.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/custom_elements_analysis.dart
diff --git a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
index 4741495b480ee1b58341875d8c8fa68e40ee317b..bdafacedbbd7a54d5058ffbf5b05f77c32569512 100644
--- a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
@@ -55,7 +55,7 @@ import 'native_data.dart';
* In these cases we conservatively generate all viable entries in the table.
*/
abstract class CustomElementsAnalysisBase {
- final NativeData _nativeData;
+ final NativeClassData _nativeData;
final BackendHelpers _helpers;
final Resolution _resolution;
@@ -70,7 +70,7 @@ abstract class CustomElementsAnalysisBase {
if (classElement.isAbstract) return;
// JsInterop classes are opaque interfaces without a concrete
// implementation.
- if (_nativeData.isJsInterop(classElement)) return;
+ if (_nativeData.isJsInteropClass(classElement)) return;
join.instantiatedClasses.add(classElement);
}
@@ -94,7 +94,7 @@ class CustomElementsResolutionAnalysis extends CustomElementsAnalysisBase {
CommonElements commonElements,
BackendClasses backendClasses,
BackendHelpers helpers,
- NativeData nativeData,
+ NativeClassData nativeData,
BackendUsageBuilder backendUsageBuilder)
: join = new CustomElementsAnalysisJoin(
backend, resolution, commonElements, backendClasses, nativeData,
@@ -132,7 +132,7 @@ class CustomElementsCodegenAnalysis extends CustomElementsAnalysisBase {
CommonElements commonElements,
BackendClasses backendClasses,
BackendHelpers helpers,
- NativeData nativeData)
+ NativeClassData nativeData)
: join = new CustomElementsAnalysisJoin(
backend, resolution, commonElements, backendClasses, nativeData),
super(resolution, helpers, nativeData) {
@@ -163,7 +163,7 @@ class CustomElementsAnalysisJoin {
final Resolution _resolution;
final CommonElements _commonElements;
final BackendClasses _backendClasses;
- final NativeData _nativeData;
+ final NativeClassData _nativeData;
final BackendUsageBuilder _backendUsageBuilder;
final bool forResolution;
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/field_naming_mixin.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698