| 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/globals.h" // Needed here to get TARGET_ARCH_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 const Array& argument_names, | 1577 const Array& argument_names, |
| 1578 Label* deopt, | 1578 Label* deopt, |
| 1579 intptr_t deopt_id, | 1579 intptr_t deopt_id, |
| 1580 intptr_t token_index, | 1580 intptr_t token_index, |
| 1581 LocationSummary* locs) { | 1581 LocationSummary* locs) { |
| 1582 ASSERT(is_optimizing()); | 1582 ASSERT(is_optimizing()); |
| 1583 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); | 1583 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); |
| 1584 Label match_found; | 1584 Label match_found; |
| 1585 const intptr_t len = ic_data.NumberOfChecks(); | 1585 const intptr_t len = ic_data.NumberOfChecks(); |
| 1586 GrowableArray<CidTarget> sorted(len); | 1586 GrowableArray<CidTarget> sorted(len); |
| 1587 SortICDataByCount(ic_data, &sorted); | 1587 SortICDataByCount(ic_data, &sorted, /* drop_smi = */ false); |
| 1588 ASSERT(class_id_reg != S4); | 1588 ASSERT(class_id_reg != S4); |
| 1589 ASSERT(len > 0); // Why bother otherwise. | 1589 ASSERT(len > 0); // Why bother otherwise. |
| 1590 const Array& arguments_descriptor = | 1590 const Array& arguments_descriptor = |
| 1591 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 1591 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
| 1592 argument_names)); | 1592 argument_names)); |
| 1593 StubCode* stub_code = isolate()->stub_code(); | 1593 StubCode* stub_code = isolate()->stub_code(); |
| 1594 | 1594 |
| 1595 __ TraceSimMsg("EmitTestAndCall"); | 1595 __ TraceSimMsg("EmitTestAndCall"); |
| 1596 __ Comment("EmitTestAndCall"); | 1596 __ Comment("EmitTestAndCall"); |
| 1597 __ LoadObject(S4, arguments_descriptor); | 1597 __ LoadObject(S4, arguments_descriptor); |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 __ AddImmediate(SP, kDoubleSize); | 1860 __ AddImmediate(SP, kDoubleSize); |
| 1861 } | 1861 } |
| 1862 | 1862 |
| 1863 | 1863 |
| 1864 #undef __ | 1864 #undef __ |
| 1865 | 1865 |
| 1866 | 1866 |
| 1867 } // namespace dart | 1867 } // namespace dart |
| 1868 | 1868 |
| 1869 #endif // defined TARGET_ARCH_MIPS | 1869 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |