| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 | 1459 |
| 1460 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, | 1460 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, |
| 1461 Register class_id_reg, | 1461 Register class_id_reg, |
| 1462 intptr_t argument_count, | 1462 intptr_t argument_count, |
| 1463 const Array& argument_names, | 1463 const Array& argument_names, |
| 1464 Label* deopt, | 1464 Label* deopt, |
| 1465 intptr_t deopt_id, | 1465 intptr_t deopt_id, |
| 1466 intptr_t token_index, | 1466 intptr_t token_index, |
| 1467 LocationSummary* locs) { | 1467 LocationSummary* locs) { |
| 1468 ASSERT(is_optimizing()); | 1468 ASSERT(is_optimizing()); |
| 1469 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0)); | 1469 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); |
| 1470 Label match_found; | 1470 Label match_found; |
| 1471 const intptr_t len = ic_data.NumberOfChecks(); | 1471 const intptr_t len = ic_data.NumberOfChecks(); |
| 1472 GrowableArray<CidTarget> sorted(len); | 1472 GrowableArray<CidTarget> sorted(len); |
| 1473 SortICDataByCount(ic_data, &sorted); | 1473 SortICDataByCount(ic_data, &sorted); |
| 1474 ASSERT(class_id_reg != R4); | 1474 ASSERT(class_id_reg != R4); |
| 1475 ASSERT(len > 0); // Why bother otherwise. | 1475 ASSERT(len > 0); // Why bother otherwise. |
| 1476 const Array& arguments_descriptor = | 1476 const Array& arguments_descriptor = |
| 1477 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 1477 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
| 1478 argument_names)); | 1478 argument_names)); |
| 1479 StubCode* stub_code = isolate()->stub_code(); | 1479 StubCode* stub_code = isolate()->stub_code(); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1737 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1737 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1738 UNIMPLEMENTED(); | 1738 UNIMPLEMENTED(); |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 | 1741 |
| 1742 #undef __ | 1742 #undef __ |
| 1743 | 1743 |
| 1744 } // namespace dart | 1744 } // namespace dart |
| 1745 | 1745 |
| 1746 #endif // defined TARGET_ARCH_ARM64 | 1746 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |