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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 11578029: Revert "Wat if you closure identical?" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index ace106606310f9feaa0718d0ddd2ef893cc79afe..4e1199ef618de9a2176888f4810b6e063e8bc11c 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -3431,7 +3431,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
return;
}
- if (element.declaration == compiler.identicalFunction) {
+ if (identical(element, compiler.identicalFunction)) {
pushWithPosition(new HIdentity(target, inputs[1], inputs[2]), node);
return;
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/core_patch.dart ('k') | tests/language/identical_closure_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698