| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 num_args_checked)); // No arguments checked. | 1366 num_args_checked)); // No arguments checked. |
| 1367 ic_data.AddTarget(target_function); | 1367 ic_data.AddTarget(target_function); |
| 1368 uword label_address = 0; | 1368 uword label_address = 0; |
| 1369 if (ic_data.NumArgsTested() == 0) { | 1369 if (ic_data.NumArgsTested() == 0) { |
| 1370 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); | 1370 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); |
| 1371 } else if (ic_data.NumArgsTested() == 2) { | 1371 } else if (ic_data.NumArgsTested() == 2) { |
| 1372 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); | 1372 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); |
| 1373 } else { | 1373 } else { |
| 1374 UNIMPLEMENTED(); | 1374 UNIMPLEMENTED(); |
| 1375 } | 1375 } |
| 1376 ExternalLabel target_label("StaticCallICStub", label_address); | 1376 ExternalLabel target_label(label_address); |
| 1377 __ LoadObject(S5, ic_data); | 1377 __ LoadObject(S5, ic_data); |
| 1378 GenerateDartCall(deopt_id, | 1378 GenerateDartCall(deopt_id, |
| 1379 token_pos, | 1379 token_pos, |
| 1380 &target_label, | 1380 &target_label, |
| 1381 PcDescriptors::kUnoptStaticCall, | 1381 PcDescriptors::kUnoptStaticCall, |
| 1382 locs); | 1382 locs); |
| 1383 __ Drop(argument_count); | 1383 __ Drop(argument_count); |
| 1384 } | 1384 } |
| 1385 | 1385 |
| 1386 | 1386 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 __ AddImmediate(SP, kDoubleSize); | 1827 __ AddImmediate(SP, kDoubleSize); |
| 1828 } | 1828 } |
| 1829 | 1829 |
| 1830 | 1830 |
| 1831 #undef __ | 1831 #undef __ |
| 1832 | 1832 |
| 1833 | 1833 |
| 1834 } // namespace dart | 1834 } // namespace dart |
| 1835 | 1835 |
| 1836 #endif // defined TARGET_ARCH_MIPS | 1836 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |