| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 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 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 intptr_t deopt_id, | 1327 intptr_t deopt_id, |
| 1328 intptr_t token_pos, | 1328 intptr_t token_pos, |
| 1329 LocationSummary* locs) { | 1329 LocationSummary* locs) { |
| 1330 StubCode* stub_code = isolate()->stub_code(); | 1330 StubCode* stub_code = isolate()->stub_code(); |
| 1331 __ LoadObject(R4, arguments_descriptor, PP); | 1331 __ LoadObject(R4, arguments_descriptor, PP); |
| 1332 // Do not use the code from the function, but let the code be patched so that | 1332 // Do not use the code from the function, but let the code be patched so that |
| 1333 // we can record the outgoing edges to other code. | 1333 // we can record the outgoing edges to other code. |
| 1334 GenerateDartCall(deopt_id, | 1334 GenerateDartCall(deopt_id, |
| 1335 token_pos, | 1335 token_pos, |
| 1336 &stub_code->CallStaticFunctionLabel(), | 1336 &stub_code->CallStaticFunctionLabel(), |
| 1337 RawPcDescriptors::kOptStaticCall, | 1337 RawPcDescriptors::kOther, |
| 1338 locs); | 1338 locs); |
| 1339 AddStaticCallTarget(function); | 1339 AddStaticCallTarget(function); |
| 1340 __ Drop(argument_count); | 1340 __ Drop(argument_count); |
| 1341 } | 1341 } |
| 1342 | 1342 |
| 1343 | 1343 |
| 1344 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( | 1344 Condition FlowGraphCompiler::EmitEqualityRegConstCompare( |
| 1345 Register reg, | 1345 Register reg, |
| 1346 const Object& obj, | 1346 const Object& obj, |
| 1347 bool needs_number_check, | 1347 bool needs_number_check, |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1504 if (is_last_check) { | 1504 if (is_last_check) { |
| 1505 __ b(deopt, NE); | 1505 __ b(deopt, NE); |
| 1506 } else { | 1506 } else { |
| 1507 __ b(&next_test, NE); | 1507 __ b(&next_test, NE); |
| 1508 } | 1508 } |
| 1509 // Do not use the code from the function, but let the code be patched so | 1509 // Do not use the code from the function, but let the code be patched so |
| 1510 // that we can record the outgoing edges to other code. | 1510 // that we can record the outgoing edges to other code. |
| 1511 GenerateDartCall(deopt_id, | 1511 GenerateDartCall(deopt_id, |
| 1512 token_index, | 1512 token_index, |
| 1513 &stub_code->CallStaticFunctionLabel(), | 1513 &stub_code->CallStaticFunctionLabel(), |
| 1514 RawPcDescriptors::kOptStaticCall, | 1514 RawPcDescriptors::kOther, |
| 1515 locs); | 1515 locs); |
| 1516 const Function& function = *sorted[i].target; | 1516 const Function& function = *sorted[i].target; |
| 1517 AddStaticCallTarget(function); | 1517 AddStaticCallTarget(function); |
| 1518 __ Drop(argument_count); | 1518 __ Drop(argument_count); |
| 1519 if (!is_last_check) { | 1519 if (!is_last_check) { |
| 1520 __ b(&match_found); | 1520 __ b(&match_found); |
| 1521 } | 1521 } |
| 1522 __ Bind(&next_test); | 1522 __ Bind(&next_test); |
| 1523 } | 1523 } |
| 1524 __ Bind(&match_found); | 1524 __ Bind(&match_found); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1804 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1805 __ PopDouble(reg); | 1805 __ PopDouble(reg); |
| 1806 } | 1806 } |
| 1807 | 1807 |
| 1808 | 1808 |
| 1809 #undef __ | 1809 #undef __ |
| 1810 | 1810 |
| 1811 } // namespace dart | 1811 } // namespace dart |
| 1812 | 1812 |
| 1813 #endif // defined TARGET_ARCH_ARM64 | 1813 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |