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

Unified Diff: pkg/compiler/lib/src/serialization/equivalence.dart

Issue 2360773003: More kernel_impact. (Closed)
Patch Set: Updated cf. comments Created 4 years, 3 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/resolution/variables.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/serialization/equivalence.dart
diff --git a/pkg/compiler/lib/src/serialization/equivalence.dart b/pkg/compiler/lib/src/serialization/equivalence.dart
index 4456623fbf66dd9b687a60ae2ed91190f9c02f97..9db38fdff5449eb60cdf9a853058ab4e520bce93 100644
--- a/pkg/compiler/lib/src/serialization/equivalence.dart
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart
@@ -516,14 +516,18 @@ class ElementIdentityEquivalence extends BaseElementVisitor<bool, Element> {
bool visitLocalFunctionElement(
LocalFunctionElement element1, LocalFunctionElement element2) {
// TODO(johnniwinther): Define an equivalence on locals.
- return checkMembers(element1.memberContext, element2.memberContext);
+ return strategy.test(
+ element1, element2, 'name', element1.name, element2.name) &&
+ checkMembers(element1.memberContext, element2.memberContext);
}
@override
bool visitLocalVariableElement(
LocalVariableElement element1, LocalVariableElement element2) {
// TODO(johnniwinther): Define an equivalence on locals.
- return checkMembers(element1.memberContext, element2.memberContext);
+ return strategy.test(
+ element1, element2, 'name', element1.name, element2.name) &&
+ checkMembers(element1.memberContext, element2.memberContext);
}
bool visitAbstractFieldElement(
« no previous file with comments | « pkg/compiler/lib/src/resolution/variables.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