| Index: src/compiler/wasm-linkage.cc
|
| diff --git a/src/compiler/wasm-linkage.cc b/src/compiler/wasm-linkage.cc
|
| index 14d7e93d84cc029ea066bcc5194c599ca962a466..66794c0cb37f08fa54fd3db16aed6629e3e31867 100644
|
| --- a/src/compiler/wasm-linkage.cc
|
| +++ b/src/compiler/wasm-linkage.cc
|
| @@ -258,8 +258,8 @@ static Allocator GetParameterRegisters() {
|
| }
|
|
|
| // General code uses the above configuration data.
|
| -CallDescriptor* ModuleEnv::GetWasmCallDescriptor(Zone* zone,
|
| - FunctionSig* fsig) {
|
| +CallDescriptor* ModuleEnv::GetWasmCallDescriptor(Zone* zone, FunctionSig* fsig,
|
| + bool internal) {
|
| MachineSignature::Builder msig(zone, fsig->return_count(),
|
| fsig->parameter_count());
|
| LocationSignature::Builder locations(zone, fsig->return_count(),
|
| @@ -292,17 +292,18 @@ CallDescriptor* ModuleEnv::GetWasmCallDescriptor(Zone* zone,
|
| MachineType target_type = MachineType::AnyTagged();
|
| LinkageLocation target_loc = LinkageLocation::ForAnyRegister();
|
|
|
| - return new (zone) CallDescriptor( // --
|
| - CallDescriptor::kCallCodeObject, // kind
|
| - target_type, // target MachineType
|
| - target_loc, // target location
|
| - msig.Build(), // machine_sig
|
| - locations.Build(), // location_sig
|
| - params.stack_offset, // stack_parameter_count
|
| - compiler::Operator::kNoProperties, // properties
|
| - kCalleeSaveRegisters, // callee-saved registers
|
| - kCalleeSaveFPRegisters, // callee-saved fp regs
|
| - CallDescriptor::kUseNativeStack, // flags
|
| + return new (zone) CallDescriptor( // --
|
| + internal ? CallDescriptor::kCallWasmFunction
|
| + : CallDescriptor::kCallCodeObject, // kind
|
| + target_type, // target MachineType
|
| + target_loc, // target location
|
| + msig.Build(), // machine_sig
|
| + locations.Build(), // location_sig
|
| + params.stack_offset, // stack_parameter_count
|
| + compiler::Operator::kNoProperties, // properties
|
| + kCalleeSaveRegisters, // callee-saved registers
|
| + kCalleeSaveFPRegisters, // callee-saved fp regs
|
| + CallDescriptor::kUseNativeStack, // flags
|
| "wasm-call");
|
| }
|
|
|
|
|