| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 | 1098 |
| 1099 void FlowGraphCompiler::EmitStaticCall(const Function& function, | 1099 void FlowGraphCompiler::EmitStaticCall(const Function& function, |
| 1100 const Array& arguments_descriptor, | 1100 const Array& arguments_descriptor, |
| 1101 intptr_t argument_count, | 1101 intptr_t argument_count, |
| 1102 intptr_t deopt_id, | 1102 intptr_t deopt_id, |
| 1103 intptr_t token_pos, | 1103 intptr_t token_pos, |
| 1104 LocationSummary* locs) { | 1104 LocationSummary* locs) { |
| 1105 ASSERT(!IsLeaf()); | 1105 ASSERT(!IsLeaf()); |
| 1106 __ LoadObject(ECX, function); | 1106 __ LoadObject(ECX, function); |
| 1107 __ LoadObject(EDX, arguments_descriptor); | 1107 __ LoadObject(EDX, arguments_descriptor); |
| 1108 GenerateDartCall(deopt_id, | 1108 if (function.HasCode()) { |
| 1109 token_pos, | 1109 const Code& code = Code::Handle(function.CurrentCode()); |
| 1110 &StubCode::CallStaticFunctionLabel(), | 1110 ExternalLabel target_label(function.ToFullyQualifiedCString(), |
| 1111 PcDescriptors::kFuncCall, | 1111 code.EntryPoint()); |
| 1112 locs); | 1112 GenerateDartCall(deopt_id, |
| 1113 token_pos, |
| 1114 &target_label, |
| 1115 PcDescriptors::kFuncCall, |
| 1116 locs); |
| 1117 } else { |
| 1118 GenerateDartCall(deopt_id, |
| 1119 token_pos, |
| 1120 &StubCode::CallStaticFunctionLabel(), |
| 1121 PcDescriptors::kFuncCall, |
| 1122 locs); |
| 1123 } |
| 1113 __ Drop(argument_count); | 1124 __ Drop(argument_count); |
| 1114 } | 1125 } |
| 1115 | 1126 |
| 1116 | 1127 |
| 1117 void FlowGraphCompiler::LoadDoubleOrSmiToXmm(XmmRegister result, | 1128 void FlowGraphCompiler::LoadDoubleOrSmiToXmm(XmmRegister result, |
| 1118 Register reg, | 1129 Register reg, |
| 1119 Register temp, | 1130 Register temp, |
| 1120 Label* not_double_or_smi) { | 1131 Label* not_double_or_smi) { |
| 1121 Label is_smi, done; | 1132 Label is_smi, done; |
| 1122 __ testl(reg, Immediate(kSmiTagMask)); | 1133 __ testl(reg, Immediate(kSmiTagMask)); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 __ popl(ECX); | 1367 __ popl(ECX); |
| 1357 __ popl(EAX); | 1368 __ popl(EAX); |
| 1358 } | 1369 } |
| 1359 | 1370 |
| 1360 | 1371 |
| 1361 #undef __ | 1372 #undef __ |
| 1362 | 1373 |
| 1363 } // namespace dart | 1374 } // namespace dart |
| 1364 | 1375 |
| 1365 #endif // defined TARGET_ARCH_IA32 | 1376 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |