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

Unified Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 1413213004: Move remaining helpers to BackendHelpers (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/native/enqueue.dart
diff --git a/pkg/compiler/lib/src/native/enqueue.dart b/pkg/compiler/lib/src/native/enqueue.dart
index edf5d67acdb1e443db4762f1c0b3334ff3d04752..c96f7da08be04f6ba73bcda38b0c38c4b198e500 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -95,6 +95,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
processedLibraries = compiler.cacheStrategy.newSet();
JavaScriptBackend get backend => compiler.backend;
+ BackendHelpers get helpers => backend.helpers;
Resolution get resolution => compiler.resolution;
DiagnosticReporter get reporter => compiler.reporter;
@@ -108,8 +109,8 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
libraries = libraries.where(processedLibraries.add);
}
libraries.forEach(processNativeClassesInLibrary);
- if (backend.isolateHelperLibrary != null) {
- processNativeClassesInLibrary(backend.isolateHelperLibrary);
+ if (helpers.isolateHelperLibrary != null) {
+ processNativeClassesInLibrary(helpers.isolateHelperLibrary);
}
processSubclassesOfNativeClasses(libraries);
if (!enableLiveTypeAnalysis) {
@@ -269,7 +270,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
void findAnnotationClasses() {
if (_annotationCreatesClass != null) return;
ClassElement find(name) {
- Element e = backend.findHelper(name);
+ Element e = helpers.findHelper(name);
if (e == null || e is! ClassElement) {
reporter.internalError(NO_LOCATION_SPANNABLE,
"Could not find implementation class '${name}'.");
@@ -516,7 +517,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
onFirstNativeClass() {
staticUse(name) {
backend.enqueue(
- world, backend.findHelper(name), compiler.globalDependencies);
+ world, helpers.findHelper(name), compiler.globalDependencies);
}
staticUse('defineProperty');
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | pkg/compiler/lib/src/native/native.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698