| 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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 intptr_t deopt_id, | 1346 intptr_t deopt_id, |
| 1347 intptr_t token_pos, | 1347 intptr_t token_pos, |
| 1348 LocationSummary* locs) { | 1348 LocationSummary* locs) { |
| 1349 StubCode* stub_code = isolate()->stub_code(); | 1349 StubCode* stub_code = isolate()->stub_code(); |
| 1350 __ LoadObject(R4, arguments_descriptor); | 1350 __ LoadObject(R4, arguments_descriptor); |
| 1351 // Do not use the code from the function, but let the code be patched so that | 1351 // Do not use the code from the function, but let the code be patched so that |
| 1352 // we can record the outgoing edges to other code. | 1352 // we can record the outgoing edges to other code. |
| 1353 GenerateDartCall(deopt_id, | 1353 GenerateDartCall(deopt_id, |
| 1354 token_pos, | 1354 token_pos, |
| 1355 &stub_code->CallStaticFunctionLabel(), | 1355 &stub_code->CallStaticFunctionLabel(), |
| 1356 RawPcDescriptors::kOptStaticCall, | 1356 RawPcDescriptors::kOther, |
| 1357 locs); | 1357 locs); |
| 1358 AddStaticCallTarget(function); | 1358 AddStaticCallTarget(function); |
| 1359 __ Drop(argument_count); | 1359 __ Drop(argument_count); |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 | 1362 |
| 1363 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( | 1363 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
| 1364 Register reg, | 1364 Register reg, |
| 1365 const Object& obj, | 1365 const Object& obj, |
| 1366 bool needs_number_check, | 1366 bool needs_number_check, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 if (is_last_check) { | 1540 if (is_last_check) { |
| 1541 __ b(deopt, NE); | 1541 __ b(deopt, NE); |
| 1542 } else { | 1542 } else { |
| 1543 __ b(&next_test, NE); | 1543 __ b(&next_test, NE); |
| 1544 } | 1544 } |
| 1545 // Do not use the code from the function, but let the code be patched so | 1545 // Do not use the code from the function, but let the code be patched so |
| 1546 // that we can record the outgoing edges to other code. | 1546 // that we can record the outgoing edges to other code. |
| 1547 GenerateDartCall(deopt_id, | 1547 GenerateDartCall(deopt_id, |
| 1548 token_index, | 1548 token_index, |
| 1549 &stub_code->CallStaticFunctionLabel(), | 1549 &stub_code->CallStaticFunctionLabel(), |
| 1550 RawPcDescriptors::kOptStaticCall, | 1550 RawPcDescriptors::kOther, |
| 1551 locs); | 1551 locs); |
| 1552 const Function& function = *sorted[i].target; | 1552 const Function& function = *sorted[i].target; |
| 1553 AddStaticCallTarget(function); | 1553 AddStaticCallTarget(function); |
| 1554 __ Drop(argument_count); | 1554 __ Drop(argument_count); |
| 1555 if (!is_last_check) { | 1555 if (!is_last_check) { |
| 1556 __ b(&match_found); | 1556 __ b(&match_found); |
| 1557 } | 1557 } |
| 1558 __ Bind(&next_test); | 1558 __ Bind(&next_test); |
| 1559 } | 1559 } |
| 1560 __ Bind(&match_found); | 1560 __ Bind(&match_found); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1857 DRegister dreg = EvenDRegisterOf(reg); | 1857 DRegister dreg = EvenDRegisterOf(reg); |
| 1858 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1858 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1859 } | 1859 } |
| 1860 | 1860 |
| 1861 | 1861 |
| 1862 #undef __ | 1862 #undef __ |
| 1863 | 1863 |
| 1864 } // namespace dart | 1864 } // namespace dart |
| 1865 | 1865 |
| 1866 #endif // defined TARGET_ARCH_ARM | 1866 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |