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

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

Issue 2827283002: Implement subtype relation for kernel based elements. (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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/enqueue.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.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/backend_usage.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_usage.dart b/pkg/compiler/lib/src/js_backend/backend_usage.dart
index 0f1a3f3a51b92e8d5094a381a6ef8e3750b4715d..8d5f5460bc4b1b3ac7b2a0c11e99e935903ee170 100644
--- a/pkg/compiler/lib/src/js_backend/backend_usage.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_usage.dart
@@ -339,8 +339,13 @@ class BackendUsageImpl implements BackendUsage {
@override
Iterable<FunctionEntity> get globalFunctionDependencies =>
- _globalFunctionDependencies;
+ _globalFunctionDependencies ?? const <FunctionEntity>[];
@override
- Iterable<ClassEntity> get globalClassDependencies => _globalClassDependencies;
+ Iterable<ClassEntity> get globalClassDependencies =>
+ _globalClassDependencies ?? const <ClassEntity>[];
+
+ Iterable<FunctionEntity> get helperFunctionsUsed => _helperFunctionsUsed;
+
+ Iterable<ClassEntity> get helperClassesUsed => _helperClassesUsed;
}
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698