Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index 998a4f3f894bdb08d4396fe4357fc9f6e17d2b8e..bd84c442b7fdacab4dfc20ee02bb72a80ab99a08 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -463,6 +463,22 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ Jump(at); |
break; |
} |
+ case kArchPrepareCallCFunction: { |
+ int const num_parameters = MiscField::decode(instr->opcode()); |
+ __ PrepareCallCFunction(num_parameters, kScratchReg); |
+ break; |
+ } |
+ case kArchCallCFunction: { |
+ int const num_parameters = MiscField::decode(instr->opcode()); |
+ if (instr->InputAt(0)->IsImmediate()) { |
+ ExternalReference ref = i.InputExternalReference(0); |
+ __ CallCFunction(ref, num_parameters); |
+ } else { |
+ Register func = i.InputRegister(0); |
+ __ CallCFunction(func, num_parameters); |
+ } |
+ break; |
+ } |
case kArchJmp: |
AssembleArchJump(i.InputRpo(0)); |
break; |