Chromium Code Reviews| Index: runtime/vm/intermediate_language.cc |
| =================================================================== |
| --- runtime/vm/intermediate_language.cc (revision 13897) |
| +++ runtime/vm/intermediate_language.cc (working copy) |
| @@ -1852,12 +1852,18 @@ |
| void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| + Label skip_call; |
| + const String& equality_name = String::Handle(Symbols::New("==")); |
|
hausner
2012/10/22 20:00:29
Ditto regarding using a symbol.
|
| + if (function().name() == equality_name.raw()) { |
| + compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call); |
| + } |
| compiler->GenerateStaticCall(deopt_id(), |
| token_pos(), |
| function(), |
| ArgumentCount(), |
| argument_names(), |
| locs()); |
| + __ Bind(&skip_call); |
| } |