| 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 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 num_args_checked = 2; | 1193 num_args_checked = 2; |
| 1194 } | 1194 } |
| 1195 const ICData& ic_data = ICData::ZoneHandle( | 1195 const ICData& ic_data = ICData::ZoneHandle( |
| 1196 ICData::New(parsed_function().function(), // Caller function. | 1196 ICData::New(parsed_function().function(), // Caller function. |
| 1197 String::Handle(target_function.name()), | 1197 String::Handle(target_function.name()), |
| 1198 arguments_descriptor, | 1198 arguments_descriptor, |
| 1199 deopt_id, | 1199 deopt_id, |
| 1200 num_args_checked)); // No arguments checked. | 1200 num_args_checked)); // No arguments checked. |
| 1201 ic_data.AddTarget(target_function); | 1201 ic_data.AddTarget(target_function); |
| 1202 uword label_address = 0; | 1202 uword label_address = 0; |
| 1203 if (ic_data.num_args_tested() == 0) { | 1203 if (ic_data.NumArgsTested() == 0) { |
| 1204 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); | 1204 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); |
| 1205 } else if (ic_data.num_args_tested() == 2) { | 1205 } else if (ic_data.NumArgsTested() == 2) { |
| 1206 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); | 1206 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); |
| 1207 } else { | 1207 } else { |
| 1208 UNIMPLEMENTED(); | 1208 UNIMPLEMENTED(); |
| 1209 } | 1209 } |
| 1210 ExternalLabel target_label("StaticCallICStub", label_address); | 1210 ExternalLabel target_label("StaticCallICStub", label_address); |
| 1211 __ LoadObject(ECX, ic_data); | 1211 __ LoadObject(ECX, ic_data); |
| 1212 GenerateDartCall(deopt_id, | 1212 GenerateDartCall(deopt_id, |
| 1213 token_pos, | 1213 token_pos, |
| 1214 &target_label, | 1214 &target_label, |
| 1215 PcDescriptors::kUnoptStaticCall, | 1215 PcDescriptors::kUnoptStaticCall, |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 __ movups(reg, Address(ESP, 0)); | 1803 __ movups(reg, Address(ESP, 0)); |
| 1804 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1804 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 | 1807 |
| 1808 #undef __ | 1808 #undef __ |
| 1809 | 1809 |
| 1810 } // namespace dart | 1810 } // namespace dart |
| 1811 | 1811 |
| 1812 #endif // defined TARGET_ARCH_IA32 | 1812 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |