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 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 __ Drop(argument_count); | 1294 __ Drop(argument_count); |
1295 } | 1295 } |
1296 | 1296 |
1297 | 1297 |
1298 void FlowGraphCompiler::EmitUnoptimizedStaticCall( | 1298 void FlowGraphCompiler::EmitUnoptimizedStaticCall( |
1299 intptr_t argument_count, | 1299 intptr_t argument_count, |
1300 intptr_t deopt_id, | 1300 intptr_t deopt_id, |
1301 intptr_t token_pos, | 1301 intptr_t token_pos, |
1302 LocationSummary* locs, | 1302 LocationSummary* locs, |
1303 const ICData& ic_data) { | 1303 const ICData& ic_data) { |
1304 uword label_address = 0; | |
1305 StubCode* stub_code = isolate()->stub_code(); | 1304 StubCode* stub_code = isolate()->stub_code(); |
1306 if (ic_data.NumArgsTested() == 0) { | 1305 const uword label_address = |
1307 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint(); | 1306 stub_code->UnoptimizedStaticCallEntryPoint(ic_data.NumArgsTested()); |
1308 } else if (ic_data.NumArgsTested() == 2) { | |
1309 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint(); | |
1310 } else { | |
1311 UNIMPLEMENTED(); | |
1312 } | |
1313 ExternalLabel target_label(label_address); | 1307 ExternalLabel target_label(label_address); |
1314 __ LoadObject(R5, ic_data, PP); | 1308 __ LoadObject(R5, ic_data, PP); |
1315 GenerateDartCall(deopt_id, | 1309 GenerateDartCall(deopt_id, |
1316 token_pos, | 1310 token_pos, |
1317 &target_label, | 1311 &target_label, |
1318 RawPcDescriptors::kUnoptStaticCall, | 1312 RawPcDescriptors::kUnoptStaticCall, |
1319 locs); | 1313 locs); |
1320 #if defined(DEBUG) | 1314 #if defined(DEBUG) |
1321 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); | 1315 __ LoadImmediate(R4, kInvalidObjectPointer, kNoPP); |
1322 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); | 1316 __ LoadImmediate(R5, kInvalidObjectPointer, kNoPP); |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1737 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
1744 UNIMPLEMENTED(); | 1738 UNIMPLEMENTED(); |
1745 } | 1739 } |
1746 | 1740 |
1747 | 1741 |
1748 #undef __ | 1742 #undef __ |
1749 | 1743 |
1750 } // namespace dart | 1744 } // namespace dart |
1751 | 1745 |
1752 #endif // defined TARGET_ARCH_ARM64 | 1746 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |