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

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

Issue 2684783003: Refactor ConstantSystem (Closed)
Patch Set: Updated cf. comments. 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/lookup_map_analysis.dart
diff --git a/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart b/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart
index 71065d5c8e0050aa975d22ac999816eb7b0dbf7a..ef2f47a3ee1dcf8ee4da44503f62737839f64e25 100644
--- a/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart
@@ -233,8 +233,10 @@ class LookupMapAnalysis {
key.isPrimitive || _inUse.contains(key) || _overridesEquals(key);
void _addClassUse(ClassElement cls) {
- ConstantValue key = _typeConstants.putIfAbsent(cls,
- () => backend.constantSystem.createType(backend.compiler, cls.rawType));
+ ConstantValue key = _typeConstants.putIfAbsent(
+ cls,
+ () => backend.constantSystem.createType(
+ backend.commonElements, backend.backendClasses, cls.rawType));
_addUse(key);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698