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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 2645973003: dart2js: Move lowering of identical(a, b) from builder to optimizer (Closed)
Patch Set: format Created 3 years, 11 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/ssa/builder.dart ('k') | sdk/lib/_internal/js_runtime/lib/core_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index d84aaf356ca95218c7d4b03a5940ccc3a1107a00..b7b0c0ac5b2bc9e668d10487bfbfc1021d9043d6 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -1005,7 +1005,13 @@ class SsaInstructionSimplifier extends HBaseVisitor
propagateConstantValueToUses(node);
MemberEntity element = node.element;
- if (element == backend.helpers.checkConcurrentModificationError) {
+ if (element == compiler.commonElements.identicalFunction) {
+ if (node.inputs.length == 2) {
+ return new HIdentity(node.inputs[0], node.inputs[1], null,
+ closedWorld.commonMasks.boolType)
+ ..sourceInformation = node.sourceInformation;
+ }
+ } else if (element == backend.helpers.checkConcurrentModificationError) {
if (node.inputs.length == 2) {
HInstruction firstArgument = node.inputs[0];
if (firstArgument is HConstant) {
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | sdk/lib/_internal/js_runtime/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698