| 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 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 | 1462 |
| 1463 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, | 1463 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, |
| 1464 Register class_id_reg, | 1464 Register class_id_reg, |
| 1465 intptr_t argument_count, | 1465 intptr_t argument_count, |
| 1466 const Array& argument_names, | 1466 const Array& argument_names, |
| 1467 Label* deopt, | 1467 Label* deopt, |
| 1468 intptr_t deopt_id, | 1468 intptr_t deopt_id, |
| 1469 intptr_t token_index, | 1469 intptr_t token_index, |
| 1470 LocationSummary* locs) { | 1470 LocationSummary* locs) { |
| 1471 ASSERT(is_optimizing()); | 1471 ASSERT(is_optimizing()); |
| 1472 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0)); | 1472 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); |
| 1473 Label match_found; | 1473 Label match_found; |
| 1474 const intptr_t len = ic_data.NumberOfChecks(); | 1474 const intptr_t len = ic_data.NumberOfChecks(); |
| 1475 GrowableArray<CidTarget> sorted(len); | 1475 GrowableArray<CidTarget> sorted(len); |
| 1476 SortICDataByCount(ic_data, &sorted); | 1476 SortICDataByCount(ic_data, &sorted); |
| 1477 ASSERT(class_id_reg != R10); | 1477 ASSERT(class_id_reg != R10); |
| 1478 ASSERT(len > 0); // Why bother otherwise. | 1478 ASSERT(len > 0); // Why bother otherwise. |
| 1479 const Array& arguments_descriptor = | 1479 const Array& arguments_descriptor = |
| 1480 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 1480 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
| 1481 argument_names)); | 1481 argument_names)); |
| 1482 StubCode* stub_code = isolate()->stub_code(); | 1482 StubCode* stub_code = isolate()->stub_code(); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1728 __ movups(reg, Address(RSP, 0)); | 1728 __ movups(reg, Address(RSP, 0)); |
| 1729 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1729 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1730 } | 1730 } |
| 1731 | 1731 |
| 1732 | 1732 |
| 1733 #undef __ | 1733 #undef __ |
| 1734 | 1734 |
| 1735 } // namespace dart | 1735 } // namespace dart |
| 1736 | 1736 |
| 1737 #endif // defined TARGET_ARCH_X64 | 1737 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |