| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1206 num_args_checked)); // No arguments checked. | 1206 num_args_checked)); // No arguments checked. |
| 1207 ic_data.AddTarget(target_function); | 1207 ic_data.AddTarget(target_function); |
| 1208 uword label_address = 0; | 1208 uword label_address = 0; |
| 1209 if (ic_data.NumArgsTested() == 0) { | 1209 if (ic_data.NumArgsTested() == 0) { |
| 1210 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); | 1210 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); |
| 1211 } else if (ic_data.NumArgsTested() == 2) { | 1211 } else if (ic_data.NumArgsTested() == 2) { |
| 1212 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); | 1212 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); |
| 1213 } else { | 1213 } else { |
| 1214 UNIMPLEMENTED(); | 1214 UNIMPLEMENTED(); |
| 1215 } | 1215 } |
| 1216 ExternalLabel target_label("StaticCallICStub", label_address); | 1216 ExternalLabel target_label(label_address); |
| 1217 __ LoadObject(ECX, ic_data); | 1217 __ LoadObject(ECX, ic_data); |
| 1218 GenerateDartCall(deopt_id, | 1218 GenerateDartCall(deopt_id, |
| 1219 token_pos, | 1219 token_pos, |
| 1220 &target_label, | 1220 &target_label, |
| 1221 PcDescriptors::kUnoptStaticCall, | 1221 PcDescriptors::kUnoptStaticCall, |
| 1222 locs); | 1222 locs); |
| 1223 __ Drop(argument_count); | 1223 __ Drop(argument_count); |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 | 1226 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 __ movups(reg, Address(ESP, 0)); | 1779 __ movups(reg, Address(ESP, 0)); |
| 1780 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1780 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1781 } | 1781 } |
| 1782 | 1782 |
| 1783 | 1783 |
| 1784 #undef __ | 1784 #undef __ |
| 1785 | 1785 |
| 1786 } // namespace dart | 1786 } // namespace dart |
| 1787 | 1787 |
| 1788 #endif // defined TARGET_ARCH_IA32 | 1788 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |