| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 | 1469 |
| 1470 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, | 1470 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, |
| 1471 Register class_id_reg, | 1471 Register class_id_reg, |
| 1472 intptr_t argument_count, | 1472 intptr_t argument_count, |
| 1473 const Array& argument_names, | 1473 const Array& argument_names, |
| 1474 Label* deopt, | 1474 Label* deopt, |
| 1475 intptr_t deopt_id, | 1475 intptr_t deopt_id, |
| 1476 intptr_t token_index, | 1476 intptr_t token_index, |
| 1477 LocationSummary* locs) { | 1477 LocationSummary* locs) { |
| 1478 ASSERT(is_optimizing()); | 1478 ASSERT(is_optimizing()); |
| 1479 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0)); | 1479 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); |
| 1480 Label match_found; | 1480 Label match_found; |
| 1481 const intptr_t len = ic_data.NumberOfChecks(); | 1481 const intptr_t len = ic_data.NumberOfChecks(); |
| 1482 GrowableArray<CidTarget> sorted(len); | 1482 GrowableArray<CidTarget> sorted(len); |
| 1483 SortICDataByCount(ic_data, &sorted); | 1483 SortICDataByCount(ic_data, &sorted); |
| 1484 ASSERT(class_id_reg != EDX); | 1484 ASSERT(class_id_reg != EDX); |
| 1485 ASSERT(len > 0); // Why bother otherwise. | 1485 ASSERT(len > 0); // Why bother otherwise. |
| 1486 const Array& arguments_descriptor = | 1486 const Array& arguments_descriptor = |
| 1487 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 1487 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
| 1488 argument_names)); | 1488 argument_names)); |
| 1489 StubCode* stub_code = isolate()->stub_code(); | 1489 StubCode* stub_code = isolate()->stub_code(); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 __ movups(reg, Address(ESP, 0)); | 1763 __ movups(reg, Address(ESP, 0)); |
| 1764 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1764 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1765 } | 1765 } |
| 1766 | 1766 |
| 1767 | 1767 |
| 1768 #undef __ | 1768 #undef __ |
| 1769 | 1769 |
| 1770 } // namespace dart | 1770 } // namespace dart |
| 1771 | 1771 |
| 1772 #endif // defined TARGET_ARCH_IA32 | 1772 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |