| 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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1533 } else { | 1533 } else { |
| 1534 __ j(NOT_ZERO, &after_smi_test); | 1534 __ j(NOT_ZERO, &after_smi_test); |
| 1535 } | 1535 } |
| 1536 // Do not use the code from the function, but let the code be patched so | 1536 // Do not use the code from the function, but let the code be patched so |
| 1537 // that we can record the outgoing edges to other code. | 1537 // that we can record the outgoing edges to other code. |
| 1538 GenerateDartCall(deopt_id, | 1538 GenerateDartCall(deopt_id, |
| 1539 token_index, | 1539 token_index, |
| 1540 *StubCode::CallStaticFunction_entry(), | 1540 *StubCode::CallStaticFunction_entry(), |
| 1541 RawPcDescriptors::kOther, | 1541 RawPcDescriptors::kOther, |
| 1542 locs); | 1542 locs); |
| 1543 const Function& function = Function::Handle(zone(), ic_data.GetTargetAt(0)); | 1543 const Function& function = Function::ZoneHandle( |
| 1544 zone(), ic_data.GetTargetAt(0)); |
| 1544 AddStaticCallTarget(function); | 1545 AddStaticCallTarget(function); |
| 1545 __ Drop(argument_count); | 1546 __ Drop(argument_count); |
| 1546 if (kNumChecks > 1) { | 1547 if (kNumChecks > 1) { |
| 1547 __ jmp(match_found); | 1548 __ jmp(match_found); |
| 1548 } | 1549 } |
| 1549 } else { | 1550 } else { |
| 1550 // Receiver is Smi, but Smi is not a valid class therefore fail. | 1551 // Receiver is Smi, but Smi is not a valid class therefore fail. |
| 1551 // (Smi class must be first in the list). | 1552 // (Smi class must be first in the list). |
| 1552 __ j(ZERO, failed); | 1553 __ j(ZERO, failed); |
| 1553 } | 1554 } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1853 __ movups(reg, Address(ESP, 0)); | 1854 __ movups(reg, Address(ESP, 0)); |
| 1854 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1855 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1855 } | 1856 } |
| 1856 | 1857 |
| 1857 | 1858 |
| 1858 #undef __ | 1859 #undef __ |
| 1859 | 1860 |
| 1860 } // namespace dart | 1861 } // namespace dart |
| 1861 | 1862 |
| 1862 #endif // defined TARGET_ARCH_IA32 | 1863 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |