| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 const Array& argument_names, | 1509 const Array& argument_names, |
| 1510 Label* deopt, | 1510 Label* deopt, |
| 1511 intptr_t deopt_id, | 1511 intptr_t deopt_id, |
| 1512 intptr_t token_index, | 1512 intptr_t token_index, |
| 1513 LocationSummary* locs) { | 1513 LocationSummary* locs) { |
| 1514 ASSERT(is_optimizing()); | 1514 ASSERT(is_optimizing()); |
| 1515 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); | 1515 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); |
| 1516 Label match_found; | 1516 Label match_found; |
| 1517 const intptr_t len = ic_data.NumberOfChecks(); | 1517 const intptr_t len = ic_data.NumberOfChecks(); |
| 1518 GrowableArray<CidTarget> sorted(len); | 1518 GrowableArray<CidTarget> sorted(len); |
| 1519 SortICDataByCount(ic_data, &sorted); | 1519 SortICDataByCount(ic_data, &sorted, /* drop_smi = */ false); |
| 1520 ASSERT(class_id_reg != R10); | 1520 ASSERT(class_id_reg != R10); |
| 1521 ASSERT(len > 0); // Why bother otherwise. | 1521 ASSERT(len > 0); // Why bother otherwise. |
| 1522 const Array& arguments_descriptor = | 1522 const Array& arguments_descriptor = |
| 1523 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 1523 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
| 1524 argument_names)); | 1524 argument_names)); |
| 1525 StubCode* stub_code = isolate()->stub_code(); | 1525 StubCode* stub_code = isolate()->stub_code(); |
| 1526 | 1526 |
| 1527 __ LoadObject(R10, arguments_descriptor, PP); | 1527 __ LoadObject(R10, arguments_descriptor, PP); |
| 1528 for (intptr_t i = 0; i < len; i++) { | 1528 for (intptr_t i = 0; i < len; i++) { |
| 1529 const bool is_last_check = (i == (len - 1)); | 1529 const bool is_last_check = (i == (len - 1)); |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1784 __ movups(reg, Address(RSP, 0)); | 1784 __ movups(reg, Address(RSP, 0)); |
| 1785 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1785 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1786 } | 1786 } |
| 1787 | 1787 |
| 1788 | 1788 |
| 1789 #undef __ | 1789 #undef __ |
| 1790 | 1790 |
| 1791 } // namespace dart | 1791 } // namespace dart |
| 1792 | 1792 |
| 1793 #endif // defined TARGET_ARCH_X64 | 1793 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |