Index: src/ppc/simulator-ppc.cc |
diff --git a/src/ppc/simulator-ppc.cc b/src/ppc/simulator-ppc.cc |
index a4088a6b1e75816d9aa17fc41a04199f5c548267..75074317a6d258c1b0b60cf2336121fba3021ef9 100644 |
--- a/src/ppc/simulator-ppc.cc |
+++ b/src/ppc/simulator-ppc.cc |
@@ -1235,9 +1235,9 @@ void Simulator::SoftwareInterrupt(Instruction* instr) { |
const int kArgCount = 6; |
int arg0_regnum = 3; |
intptr_t result_buffer = 0; |
- if (redirection->type() == ExternalReference::BUILTIN_CALL_TRIPLE || |
- (redirection->type() == ExternalReference::BUILTIN_CALL_PAIR && |
- !ABI_RETURNS_OBJECT_PAIRS_IN_REGS)) { |
+ bool uses_result_buffer = |
+ redirection->type() == ExternalReference::BUILTIN_CALL_TRIPLE; |
+ if (uses_result_buffer) { |
result_buffer = get_register(r3); |
arg0_regnum++; |
} |