Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: src/compiler/c-linkage.cc

Issue 1513543003: [turbofan] Make MachineType a pair of enums. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/change-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698