Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Unified Diff: src/ppc/simulator-ppc.cc

Issue 1590423002: PPC: Fix simulator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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++;
}
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698