| Index: runtime/vm/flow_graph_builder.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_builder.cc (revision 21709)
|
| +++ runtime/vm/flow_graph_builder.cc (working copy)
|
| @@ -1929,30 +1929,6 @@
|
| // <Expression> ::= StaticCall { function: Function
|
| // arguments: <ArgumentList> }
|
| void EffectGraphVisitor::VisitStaticCallNode(StaticCallNode* node) {
|
| - if (node->function().name() == Symbols::Identical().raw()) {
|
| - // Attempt to replace top level defined 'identical' from the core
|
| - // library with strict equal early on.
|
| - // TODO(hausner): Evaluate if this can happen at AST building time.
|
| - const Class& cls = Class::Handle(node->function().Owner());
|
| - if (cls.IsTopLevel()) {
|
| - const Library& core_lib = Library::Handle(Library::CoreLibrary());
|
| - if (cls.library() == core_lib.raw()) {
|
| - ASSERT(node->arguments()->length() == 2);
|
| - ValueGraphVisitor for_left_value(owner(), temp_index());
|
| - node->arguments()->NodeAt(0)->Visit(&for_left_value);
|
| - Append(for_left_value);
|
| - ValueGraphVisitor for_right_value(owner(), temp_index());
|
| - node->arguments()->NodeAt(1)->Visit(&for_right_value);
|
| - Append(for_right_value);
|
| - StrictCompareInstr* comp = new StrictCompareInstr(
|
| - Token::kEQ_STRICT,
|
| - for_left_value.value(),
|
| - for_right_value.value());
|
| - ReturnDefinition(comp);
|
| - return;
|
| - }
|
| - }
|
| - }
|
| ZoneGrowableArray<PushArgumentInstr*>* arguments =
|
| new ZoneGrowableArray<PushArgumentInstr*>(node->arguments()->length());
|
| BuildPushArguments(*node->arguments(), arguments);
|
|
|