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

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

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Created 3 years, 5 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/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 73e3d696369505f1343498af8cea456eec76dc2a..549849284d4b68b42e17b010709dff6a53a9e70f 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -132,8 +132,8 @@ class FunctionInlineCache {
if (decision == null) {
// These synthetic elements are not yet present when we initially compute
// this cache from metadata annotations, so look for their parent.
- if (element is ConstructorBodyElement) {
- ConstructorBodyElement body = element;
+ if (element is ConstructorBodyEntity) {
+ ConstructorBodyEntity body = element;
decision = _cachedDecisions[body.constructor];
}
if (decision == null) {

Powered by Google App Engine
This is Rietveld 408576698