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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
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 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 } else { | 1548 } else { |
1549 __ b(&after_smi_test, NE); | 1549 __ b(&after_smi_test, NE); |
1550 } | 1550 } |
1551 // Do not use the code from the function, but let the code be patched so | 1551 // Do not use the code from the function, but let the code be patched so |
1552 // that we can record the outgoing edges to other code. | 1552 // that we can record the outgoing edges to other code. |
1553 GenerateDartCall(deopt_id, | 1553 GenerateDartCall(deopt_id, |
1554 token_index, | 1554 token_index, |
1555 *StubCode::CallStaticFunction_entry(), | 1555 *StubCode::CallStaticFunction_entry(), |
1556 RawPcDescriptors::kOther, | 1556 RawPcDescriptors::kOther, |
1557 locs); | 1557 locs); |
1558 const Function& function = Function::Handle(zone(), ic_data.GetTargetAt(0)); | 1558 const Function& function = Function::ZoneHandle( |
| 1559 zone(), ic_data.GetTargetAt(0)); |
1559 AddStaticCallTarget(function); | 1560 AddStaticCallTarget(function); |
1560 __ Drop(argument_count); | 1561 __ Drop(argument_count); |
1561 if (kNumChecks > 1) { | 1562 if (kNumChecks > 1) { |
1562 __ b(match_found); | 1563 __ b(match_found); |
1563 } | 1564 } |
1564 } else { | 1565 } else { |
1565 // Receiver is Smi, but Smi is not a valid class therefore fail. | 1566 // Receiver is Smi, but Smi is not a valid class therefore fail. |
1566 // (Smi class must be first in the list). | 1567 // (Smi class must be first in the list). |
1567 __ b(failed, EQ); | 1568 __ b(failed, EQ); |
1568 } | 1569 } |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1903 DRegister dreg = EvenDRegisterOf(reg); | 1904 DRegister dreg = EvenDRegisterOf(reg); |
1904 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1905 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1905 } | 1906 } |
1906 | 1907 |
1907 | 1908 |
1908 #undef __ | 1909 #undef __ |
1909 | 1910 |
1910 } // namespace dart | 1911 } // namespace dart |
1911 | 1912 |
1912 #endif // defined TARGET_ARCH_ARM | 1913 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |