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

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

Issue 1638283004: [wasm] Backoff implementation for F64Trunc using std::trunc. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@init-root-register
Patch Set: Use math.h trunc instead of std::trunc. Created 4 years, 10 months 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
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/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
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
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
OLDNEW
« src/assembler.cc ('K') | « src/compiler/wasm-compiler.cc ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698