| 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 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1841 | 1841 |
| 1842 | 1842 |
| 1843 LocationSummary* InstanceCallInstr::MakeLocationSummary() const { | 1843 LocationSummary* InstanceCallInstr::MakeLocationSummary() const { |
| 1844 return MakeCallSummary(); | 1844 return MakeCallSummary(); |
| 1845 } | 1845 } |
| 1846 | 1846 |
| 1847 | 1847 |
| 1848 void InstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1848 void InstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1849 if (compiler->is_optimizing()) { | 1849 if (compiler->is_optimizing()) { |
| 1850 if (HasICData() && (ic_data()->NumberOfChecks() > 0)) { | 1850 if (HasICData() && (ic_data()->NumberOfChecks() > 0)) { |
| 1851 const ICData& unary_ic_data = |
| 1852 ICData::ZoneHandle(ic_data()->AsUnaryClassChecks()); |
| 1851 compiler->GenerateInstanceCall(deopt_id(), | 1853 compiler->GenerateInstanceCall(deopt_id(), |
| 1852 token_pos(), | 1854 token_pos(), |
| 1853 ArgumentCount(), | 1855 ArgumentCount(), |
| 1854 argument_names(), | 1856 argument_names(), |
| 1855 locs(), | 1857 locs(), |
| 1856 *ic_data()); | 1858 unary_ic_data); |
| 1857 } else { | 1859 } else { |
| 1858 Label* deopt = | 1860 Label* deopt = |
| 1859 compiler->AddDeoptStub(deopt_id(), kDeoptInstanceCallNoICData); | 1861 compiler->AddDeoptStub(deopt_id(), kDeoptInstanceCallNoICData); |
| 1860 __ jmp(deopt); | 1862 __ jmp(deopt); |
| 1861 } | 1863 } |
| 1862 } else { | 1864 } else { |
| 1863 ASSERT(!HasICData()); | 1865 ASSERT(!HasICData()); |
| 1864 compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore, | 1866 compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore, |
| 1865 deopt_id(), | 1867 deopt_id(), |
| 1866 token_pos()); | 1868 token_pos()); |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2595 } while (CanonicalizeMaxBoundary(&max) || CanonicalizeMinBoundary(&length)); | 2597 } while (CanonicalizeMaxBoundary(&max) || CanonicalizeMinBoundary(&length)); |
| 2596 | 2598 |
| 2597 // Failed to prove that maximum is bounded with array length. | 2599 // Failed to prove that maximum is bounded with array length. |
| 2598 return false; | 2600 return false; |
| 2599 } | 2601 } |
| 2600 | 2602 |
| 2601 | 2603 |
| 2602 #undef __ | 2604 #undef __ |
| 2603 | 2605 |
| 2604 } // namespace dart | 2606 } // namespace dart |
| OLD | NEW |