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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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 234042e18517049d03052afee941ae6942e74a26..4fddd0cdad2ce35be8358b5c8eb9de940f391b7d 100644
--- a/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart
@@ -307,10 +307,9 @@ class _LookupMapAnalysis implements LookupMapAnalysis {
key.isPrimitive || _inUse.contains(key) || _overridesEquals(key);
void _addClassUse(ClassEntity cls) {
- ConstantValue key = _typeConstants.putIfAbsent(
- cls,
- () => _constantSystem.createType(
- _commonElements, _elementEnvironment.getRawType(cls)));
+ TypeConstantValue f() => _constantSystem.createType(
+ _commonElements, _elementEnvironment.getRawType(cls));
+ ConstantValue key = _typeConstants.putIfAbsent(cls, f);
_addUse(key);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/frequency_namer.dart ('k') | pkg/compiler/lib/src/js_backend/minify_namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698