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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 num_args_checked = 2; | 1308 num_args_checked = 2; |
1309 } | 1309 } |
1310 const ICData& ic_data = ICData::ZoneHandle( | 1310 const ICData& ic_data = ICData::ZoneHandle( |
1311 ICData::New(parsed_function().function(), // Caller function. | 1311 ICData::New(parsed_function().function(), // Caller function. |
1312 String::Handle(target_function.name()), | 1312 String::Handle(target_function.name()), |
1313 arguments_descriptor, | 1313 arguments_descriptor, |
1314 deopt_id, | 1314 deopt_id, |
1315 num_args_checked)); // No arguments checked. | 1315 num_args_checked)); // No arguments checked. |
1316 ic_data.AddTarget(target_function); | 1316 ic_data.AddTarget(target_function); |
1317 uword label_address = 0; | 1317 uword label_address = 0; |
1318 if (ic_data.num_args_tested() == 0) { | 1318 if (ic_data.NumArgsTested() == 0) { |
1319 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); | 1319 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); |
1320 } else if (ic_data.num_args_tested() == 2) { | 1320 } else if (ic_data.NumArgsTested() == 2) { |
1321 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); | 1321 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); |
1322 } else { | 1322 } else { |
1323 UNIMPLEMENTED(); | 1323 UNIMPLEMENTED(); |
1324 } | 1324 } |
1325 ExternalLabel target_label("StaticCallICStub", label_address); | 1325 ExternalLabel target_label("StaticCallICStub", label_address); |
1326 __ LoadObject(R5, ic_data); | 1326 __ LoadObject(R5, ic_data); |
1327 GenerateDartCall(deopt_id, | 1327 GenerateDartCall(deopt_id, |
1328 token_pos, | 1328 token_pos, |
1329 &target_label, | 1329 &target_label, |
1330 PcDescriptors::kUnoptStaticCall, | 1330 PcDescriptors::kUnoptStaticCall, |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1787 DRegister dreg = EvenDRegisterOf(reg); | 1787 DRegister dreg = EvenDRegisterOf(reg); |
1788 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1788 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1789 } | 1789 } |
1790 | 1790 |
1791 | 1791 |
1792 #undef __ | 1792 #undef __ |
1793 | 1793 |
1794 } // namespace dart | 1794 } // namespace dart |
1795 | 1795 |
1796 #endif // defined TARGET_ARCH_ARM | 1796 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |