• plind44@gmail.com's avatar
    MIPS: Accurate function prototypes for native calls from ARM simulator. · dcd3f06b
    plind44@gmail.com authored
    Port r14230 (76c22097)
    
    Original commit message:
    Native method invocation from the arm/simulator-arm.cc previously made
    non-portable assumptions about calling conventions. This was okay for 32-bit
    stack-based machines, where by-value structs are automatically materialized
    on the stack, and where both int and double parameters could be passed on the
    stack. However they are not okay for x86-64, which has an elaborate scheme
    for passing parameters in registers.
    
    This CL replaces the previous non-portable code paths with portable code,
    using call-sites that accurately match the prototype of the callee.
    
    BUG=
    
    Review URL: https://codereview.chromium.org/13989008
    Patch from Akos Palfi <palfia@homejinni.com>.
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14239 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    dcd3f06b
simulator-mips.h 15.3 KB