Chromium Code Reviews| 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/wasm/wasm-module.h" | 8 #include "src/wasm/wasm-module.h" |
| 9 | 9 |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 257 msig.AddParam(MachineTypeFor(param)); | 257 msig.AddParam(MachineTypeFor(param)); |
| 258 locations.AddParam(params.Next(param)); | 258 locations.AddParam(params.Next(param)); |
| 259 } | 259 } |
| 260 | 260 |
| 261 const RegList kCalleeSaveRegisters = 0; | 261 const RegList kCalleeSaveRegisters = 0; |
| 262 const RegList kCalleeSaveFPRegisters = 0; | 262 const RegList kCalleeSaveFPRegisters = 0; |
| 263 | 263 |
| 264 // The target for WASM calls is always a code object. | 264 // The target for WASM calls is always a code object. |
| 265 MachineType target_type = MachineType::AnyTagged(); | 265 MachineType target_type = MachineType::AnyTagged(); |
| 266 LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); | 266 LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); |
| 267 | |
|
titzer
2016/02/01 08:24:36
Stray blank line.
| |
| 267 return new (zone) CallDescriptor( // -- | 268 return new (zone) CallDescriptor( // -- |
| 268 CallDescriptor::kCallCodeObject, // kind | 269 CallDescriptor::kCallCodeObject, // kind |
| 269 target_type, // target MachineType | 270 target_type, // target MachineType |
| 270 target_loc, // target location | 271 target_loc, // target location |
| 271 msig.Build(), // machine_sig | 272 msig.Build(), // machine_sig |
| 272 locations.Build(), // location_sig | 273 locations.Build(), // location_sig |
| 273 params.stack_offset, // stack_parameter_count | 274 params.stack_offset, // stack_parameter_count |
| 274 compiler::Operator::kNoProperties, // properties | 275 compiler::Operator::kNoProperties, // properties |
| 275 kCalleeSaveRegisters, // callee-saved registers | 276 kCalleeSaveRegisters, // callee-saved registers |
| 276 kCalleeSaveFPRegisters, // callee-saved fp regs | 277 kCalleeSaveFPRegisters, // callee-saved fp regs |
| 277 CallDescriptor::kUseNativeStack, // flags | 278 CallDescriptor::kUseNativeStack, // flags |
| 278 "c-call"); | 279 "c-call"); |
| 279 } | 280 } |
| 280 } // namespace wasm | 281 } // namespace wasm |
| 281 } // namespace internal | 282 } // namespace internal |
| 282 } // namespace v8 | 283 } // namespace v8 |
| OLD | NEW |