| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_allocator.h" | 10 #include "vm/flow_graph_allocator.h" |
| (...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1828 | 1828 |
| 1829 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1829 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1830 Label skip_call; | 1830 Label skip_call; |
| 1831 if (!compiler->is_optimizing()) { | 1831 if (!compiler->is_optimizing()) { |
| 1832 // Some static calls can be optimized by the optimizing compiler (e.g. sqrt) | 1832 // Some static calls can be optimized by the optimizing compiler (e.g. sqrt) |
| 1833 // and therefore need a deoptimization descriptor. | 1833 // and therefore need a deoptimization descriptor. |
| 1834 compiler->AddCurrentDescriptor(PcDescriptors::kDeopt, | 1834 compiler->AddCurrentDescriptor(PcDescriptors::kDeopt, |
| 1835 deopt_id(), | 1835 deopt_id(), |
| 1836 token_pos()); | 1836 token_pos()); |
| 1837 } | 1837 } |
| 1838 if (function().name() == Symbols::EqualOperator().raw()) { | |
| 1839 compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call); | |
| 1840 } | |
| 1841 compiler->GenerateStaticCall(deopt_id(), | 1838 compiler->GenerateStaticCall(deopt_id(), |
| 1842 token_pos(), | 1839 token_pos(), |
| 1843 function(), | 1840 function(), |
| 1844 ArgumentCount(), | 1841 ArgumentCount(), |
| 1845 argument_names(), | 1842 argument_names(), |
| 1846 locs()); | 1843 locs()); |
| 1847 __ Bind(&skip_call); | 1844 __ Bind(&skip_call); |
| 1848 } | 1845 } |
| 1849 | 1846 |
| 1850 | 1847 |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 default: | 2637 default: |
| 2641 UNREACHABLE(); | 2638 UNREACHABLE(); |
| 2642 } | 2639 } |
| 2643 return kPowRuntimeEntry; | 2640 return kPowRuntimeEntry; |
| 2644 } | 2641 } |
| 2645 | 2642 |
| 2646 | 2643 |
| 2647 #undef __ | 2644 #undef __ |
| 2648 | 2645 |
| 2649 } // namespace dart | 2646 } // namespace dart |
| OLD | NEW |