MIPS: Fix c-linkage.

Per MIPS O32 ABI the first four arguments must be passed via
the a0-a3 registers and they must be on the stack as well.

TEST=cctest/test-run-wasm/*
BUG=

Review URL: https://codereview.chromium.org/1730763002

Cr-Commit-Position: refs/heads/master@{#34260}
This commit is contained in:
akos.palfi 2016-02-24 10:20:14 -08:00 committed by Commit bot
parent 9c53fcad78
commit 85c7357298

View File

@ -90,6 +90,7 @@ LinkageLocation regloc(Register reg) {
// ===========================================================================
// == mips ===================================================================
// ===========================================================================
#define STACK_SHADOW_WORDS 4
#define PARAM_REGISTERS a0, a1, a2, a3
#define CALLEE_SAVE_REGISTERS \
s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | s6.bit() | \