| Index: src/compiler/arm64/instruction-selector-arm64.cc
|
| diff --git a/src/compiler/arm64/instruction-selector-arm64.cc b/src/compiler/arm64/instruction-selector-arm64.cc
|
| index e051d65a06871b28cc7a3fa0ddaef5e243487530..43eb394c06d590bdb812831209a6c0320f48dfa4 100644
|
| --- a/src/compiler/arm64/instruction-selector-arm64.cc
|
| +++ b/src/compiler/arm64/instruction-selector-arm64.cc
|
| @@ -1392,18 +1392,21 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) {
|
| // Select the appropriate opcode based on the call type.
|
| InstructionCode opcode;
|
| switch (descriptor->kind()) {
|
| - case CallDescriptor::kCallCodeObject: {
|
| - opcode = kArchCallCodeObject;
|
| + case CallDescriptor::kCallAddress:
|
| + opcode =
|
| + kArchCallCFunction |
|
| + MiscField::encode(static_cast<int>(descriptor->CParameterCount()));
|
| + break;
|
| + case CallDescriptor::kCallCodeObject:
|
| + opcode = kArchCallCodeObject | MiscField::encode(flags);
|
| break;
|
| - }
|
| case CallDescriptor::kCallJSFunction:
|
| - opcode = kArchCallJSFunction;
|
| + opcode = kArchCallJSFunction | MiscField::encode(flags);
|
| break;
|
| default:
|
| UNREACHABLE();
|
| return;
|
| }
|
| - opcode |= MiscField::encode(flags);
|
|
|
| // Emit the call instruction.
|
| size_t const output_count = buffer.outputs.size();
|
|
|