Commit 85c73572 authored by akos.palfi's avatar akos.palfi Committed by Commit bot

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}
parent 9c53fcad
...@@ -90,6 +90,7 @@ LinkageLocation regloc(Register reg) { ...@@ -90,6 +90,7 @@ LinkageLocation regloc(Register reg) {
// =========================================================================== // ===========================================================================
// == mips =================================================================== // == mips ===================================================================
// =========================================================================== // ===========================================================================
#define STACK_SHADOW_WORDS 4
#define PARAM_REGISTERS a0, a1, a2, a3 #define PARAM_REGISTERS a0, a1, a2, a3
#define CALLEE_SAVE_REGISTERS \ #define CALLEE_SAVE_REGISTERS \
s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | s6.bit() | \ s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | s6.bit() | \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment