| Index: src/mips64/simulator-mips64.cc
|
| diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc
|
| index 3157030847cda4215c09adc0c331ec0bdbd8ad67..45a819a0b9b09d2f72c4bc7b2e0f8cd89208347a 100644
|
| --- a/src/mips64/simulator-mips64.cc
|
| +++ b/src/mips64/simulator-mips64.cc
|
| @@ -2077,15 +2077,17 @@ void Simulator::SoftwareInterrupt(Instruction* instr) {
|
| case ExternalReference::BUILTIN_FP_FP_CALL:
|
| case ExternalReference::BUILTIN_COMPARE_CALL:
|
| PrintF("Call to host function at %p with args %f, %f",
|
| - FUNCTION_ADDR(generic_target), dval0, dval1);
|
| + static_cast<void*>(FUNCTION_ADDR(generic_target)), dval0,
|
| + dval1);
|
| break;
|
| case ExternalReference::BUILTIN_FP_CALL:
|
| PrintF("Call to host function at %p with arg %f",
|
| - FUNCTION_ADDR(generic_target), dval0);
|
| + static_cast<void*>(FUNCTION_ADDR(generic_target)), dval0);
|
| break;
|
| case ExternalReference::BUILTIN_FP_INT_CALL:
|
| PrintF("Call to host function at %p with args %f, %d",
|
| - FUNCTION_ADDR(generic_target), dval0, ival);
|
| + static_cast<void*>(FUNCTION_ADDR(generic_target)), dval0,
|
| + ival);
|
| break;
|
| default:
|
| UNREACHABLE();
|
| @@ -2188,13 +2190,15 @@ void Simulator::SoftwareInterrupt(Instruction* instr) {
|
| "Call to host triple returning runtime function %p "
|
| "args %016" PRIx64 ", %016" PRIx64 ", %016" PRIx64 ", %016" PRIx64
|
| ", %016" PRIx64 "\n",
|
| - FUNCTION_ADDR(target), arg1, arg2, arg3, arg4, arg5);
|
| + static_cast<void*>(FUNCTION_ADDR(target)), arg1, arg2, arg3, arg4,
|
| + arg5);
|
| }
|
| // arg0 is a hidden argument pointing to the return location, so don't
|
| // pass it to the target function.
|
| ObjectTriple result = target(arg1, arg2, arg3, arg4, arg5);
|
| if (::v8::internal::FLAG_trace_sim) {
|
| - PrintF("Returned { %p, %p, %p }\n", result.x, result.y, result.z);
|
| + PrintF("Returned { %p, %p, %p }\n", static_cast<void*>(result.x),
|
| + static_cast<void*>(result.y), static_cast<void*>(result.z));
|
| }
|
| // Return is passed back in address pointed to by hidden first argument.
|
| ObjectTriple* sim_result = reinterpret_cast<ObjectTriple*>(arg0);
|
| @@ -2210,7 +2214,8 @@ void Simulator::SoftwareInterrupt(Instruction* instr) {
|
| "Call to host function at %p "
|
| "args %08" PRIx64 " , %08" PRIx64 " , %08" PRIx64 " , %08" PRIx64
|
| " , %08" PRIx64 " , %08" PRIx64 " \n",
|
| - FUNCTION_ADDR(target), arg0, arg1, arg2, arg3, arg4, arg5);
|
| + static_cast<void*>(FUNCTION_ADDR(target)), arg0, arg1, arg2, arg3,
|
| + arg4, arg5);
|
| }
|
| // int64_t result = target(arg0, arg1, arg2, arg3, arg4, arg5);
|
| // set_register(v0, static_cast<int32_t>(result));
|
|
|