From 284a3456b9026a3623161366f684dadb74ed1663 Mon Sep 17 00:00:00 2001 From: "balazs.kilvady" Date: Mon, 25 Jan 2016 11:38:01 -0800 Subject: [PATCH] MIPS: Followup 'Introduce BUILTIN_CALL_PAIR.' Port 433e8848df4c7ec11b7b4a808f329f4a1e31142b Add DCHECK()s for BUILTIN_CALL, BUILTIN_CALL_PAIR to simulators. BUG= Review URL: https://codereview.chromium.org/1630783002 Cr-Commit-Position: refs/heads/master@{#33500} --- src/mips/simulator-mips.cc | 2 ++ src/mips64/simulator-mips64.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc index c81dcd1d00..f0d55d938f 100644 --- a/src/mips/simulator-mips.cc +++ b/src/mips/simulator-mips.cc @@ -2207,6 +2207,8 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { *sim_result = result; set_register(v0, arg0); } else { + DCHECK(redirection->type() == ExternalReference::BUILTIN_CALL || + redirection->type() == ExternalReference::BUILTIN_CALL_PAIR); SimulatorRuntimeCall target = reinterpret_cast(external); if (::v8::internal::FLAG_trace_sim) { diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc index 4b61073847..01cf035697 100644 --- a/src/mips64/simulator-mips64.cc +++ b/src/mips64/simulator-mips64.cc @@ -2196,6 +2196,8 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { *sim_result = result; set_register(v0, arg0); } else { + DCHECK(redirection->type() == ExternalReference::BUILTIN_CALL || + redirection->type() == ExternalReference::BUILTIN_CALL_PAIR); SimulatorRuntimeCall target = reinterpret_cast(external); if (::v8::internal::FLAG_trace_sim) {