MIPS: Followup 'Introduce BUILTIN_CALL_PAIR.'

Port 433e8848df

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}
This commit is contained in:
balazs.kilvady 2016-01-25 11:38:01 -08:00 committed by Commit bot
parent 2fbe5946ed
commit 284a3456b9
2 changed files with 4 additions and 0 deletions

View File

@ -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<SimulatorRuntimeCall>(external);
if (::v8::internal::FLAG_trace_sim) {

View File

@ -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<SimulatorRuntimeCall>(external);
if (::v8::internal::FLAG_trace_sim) {