| 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 } | 1171 } |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 | 1174 |
| 1175 void FlowGraphCompiler::EmitUnoptimizedStaticCall( | 1175 void FlowGraphCompiler::EmitUnoptimizedStaticCall( |
| 1176 intptr_t argument_count, | 1176 intptr_t argument_count, |
| 1177 intptr_t deopt_id, | 1177 intptr_t deopt_id, |
| 1178 intptr_t token_pos, | 1178 intptr_t token_pos, |
| 1179 LocationSummary* locs, | 1179 LocationSummary* locs, |
| 1180 const ICData& ic_data) { | 1180 const ICData& ic_data) { |
| 1181 uword label_address = 0; | |
| 1182 StubCode* stub_code = isolate()->stub_code(); | 1181 StubCode* stub_code = isolate()->stub_code(); |
| 1183 if (ic_data.NumArgsTested() == 0) { | 1182 const uword label_address = |
| 1184 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint(); | 1183 stub_code->UnoptimizedStaticCallEntryPoint(ic_data.NumArgsTested()); |
| 1185 } else if (ic_data.NumArgsTested() == 2) { | |
| 1186 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint(); | |
| 1187 } else { | |
| 1188 UNIMPLEMENTED(); | |
| 1189 } | |
| 1190 ExternalLabel target_label(label_address); | 1184 ExternalLabel target_label(label_address); |
| 1191 __ LoadObject(ECX, ic_data); | 1185 __ LoadObject(ECX, ic_data); |
| 1192 GenerateDartCall(deopt_id, | 1186 GenerateDartCall(deopt_id, |
| 1193 token_pos, | 1187 token_pos, |
| 1194 &target_label, | 1188 &target_label, |
| 1195 RawPcDescriptors::kUnoptStaticCall, | 1189 RawPcDescriptors::kUnoptStaticCall, |
| 1196 locs); | 1190 locs); |
| 1197 __ Drop(argument_count); | 1191 __ Drop(argument_count); |
| 1198 #if defined(DEBUG) | 1192 #if defined(DEBUG) |
| 1199 __ movl(ECX, Immediate(kInvalidObjectPointer)); | 1193 __ movl(ECX, Immediate(kInvalidObjectPointer)); |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 __ movups(reg, Address(ESP, 0)); | 1763 __ movups(reg, Address(ESP, 0)); |
| 1770 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1764 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1771 } | 1765 } |
| 1772 | 1766 |
| 1773 | 1767 |
| 1774 #undef __ | 1768 #undef __ |
| 1775 | 1769 |
| 1776 } // namespace dart | 1770 } // namespace dart |
| 1777 | 1771 |
| 1778 #endif // defined TARGET_ARCH_IA32 | 1772 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |