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:
parent
9c53fcad78
commit
85c7357298
@ -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() | \
|
||||
|
Loading…
Reference in New Issue
Block a user