| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1846 } | 1846 } |
| 1847 | 1847 |
| 1848 | 1848 |
| 1849 LocationSummary* StaticCallInstr::MakeLocationSummary() const { | 1849 LocationSummary* StaticCallInstr::MakeLocationSummary() const { |
| 1850 return MakeCallSummary(); | 1850 return MakeCallSummary(); |
| 1851 } | 1851 } |
| 1852 | 1852 |
| 1853 | 1853 |
| 1854 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1854 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1855 Label skip_call; | 1855 Label skip_call; |
| 1856 const String& equality_name = String::Handle(Symbols::New("==")); | 1856 if (function().name() == Symbols::EqualOperator()) { |
| 1857 if (function().name() == equality_name.raw()) { | |
| 1858 compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call); | 1857 compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call); |
| 1859 } | 1858 } |
| 1860 compiler->GenerateStaticCall(deopt_id(), | 1859 compiler->GenerateStaticCall(deopt_id(), |
| 1861 token_pos(), | 1860 token_pos(), |
| 1862 function(), | 1861 function(), |
| 1863 ArgumentCount(), | 1862 ArgumentCount(), |
| 1864 argument_names(), | 1863 argument_names(), |
| 1865 locs()); | 1864 locs()); |
| 1866 __ Bind(&skip_call); | 1865 __ Bind(&skip_call); |
| 1867 } | 1866 } |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 new_max = new_max.Clamp(); | 2215 new_max = new_max.Clamp(); |
| 2217 } | 2216 } |
| 2218 | 2217 |
| 2219 return Range::Update(&range_, new_min, new_max); | 2218 return Range::Update(&range_, new_min, new_max); |
| 2220 } | 2219 } |
| 2221 | 2220 |
| 2222 | 2221 |
| 2223 #undef __ | 2222 #undef __ |
| 2224 | 2223 |
| 2225 } // namespace dart | 2224 } // namespace dart |
| OLD | NEW |