OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/assembler.h" | 5 #include "src/assembler.h" |
6 #include "src/macro-assembler.h" | 6 #include "src/macro-assembler.h" |
7 | 7 |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 | 9 |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 const RegList kCalleeSaveRegisters = 0; | 201 const RegList kCalleeSaveRegisters = 0; |
202 #endif | 202 #endif |
203 | 203 |
204 #ifdef CALLEE_SAVE_FP_REGISTERS | 204 #ifdef CALLEE_SAVE_FP_REGISTERS |
205 const RegList kCalleeSaveFPRegisters = CALLEE_SAVE_FP_REGISTERS; | 205 const RegList kCalleeSaveFPRegisters = CALLEE_SAVE_FP_REGISTERS; |
206 #else | 206 #else |
207 const RegList kCalleeSaveFPRegisters = 0; | 207 const RegList kCalleeSaveFPRegisters = 0; |
208 #endif | 208 #endif |
209 | 209 |
210 // The target for C calls is always an address (i.e. machine pointer). | 210 // The target for C calls is always an address (i.e. machine pointer). |
211 MachineType target_type = kMachPtr; | 211 MachineType target_type = MachineType::Pointer(); |
212 LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); | 212 LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); |
213 return new (zone) CallDescriptor( // -- | 213 return new (zone) CallDescriptor( // -- |
214 CallDescriptor::kCallAddress, // kind | 214 CallDescriptor::kCallAddress, // kind |
215 target_type, // target MachineType | 215 target_type, // target MachineType |
216 target_loc, // target location | 216 target_loc, // target location |
217 msig, // machine_sig | 217 msig, // machine_sig |
218 locations.Build(), // location_sig | 218 locations.Build(), // location_sig |
219 0, // stack_parameter_count | 219 0, // stack_parameter_count |
220 Operator::kNoProperties, // properties | 220 Operator::kNoProperties, // properties |
221 kCalleeSaveRegisters, // callee-saved registers | 221 kCalleeSaveRegisters, // callee-saved registers |
222 kCalleeSaveFPRegisters, // callee-saved fp regs | 222 kCalleeSaveFPRegisters, // callee-saved fp regs |
223 CallDescriptor::kNoFlags, // flags | 223 CallDescriptor::kNoFlags, // flags |
224 "c-call"); | 224 "c-call"); |
225 } | 225 } |
226 | 226 |
227 } // namespace compiler | 227 } // namespace compiler |
228 } // namespace internal | 228 } // namespace internal |
229 } // namespace v8 | 229 } // namespace v8 |
OLD | NEW |