• mbrandy's avatar
    PPC: [builtins] Pass correct number of arguments after adapting arguments. · 8b781ecc
    mbrandy authored
    Port fbad6366
    
    Original commit message:
        The call protocol requires that the register dedicated to the number of
        actual arguments (i.e. rax on x64) always contains the actual arguments.
        That means after adapting arguments it should match the number of
        expected arguments.  But currently we pass some semi-random value
        (usually some stack address) after adapting arguments.
    
        It looks like this is currently not observable anywhere, because our
        builtins and functions either don't look at the number of arguments and
        just make hard coded (unchecked) assumptions, or are marked as "don't
        adapt arguments", which bypasses the broken code in the trampoline for
        arguments adaption.  Nevertheless this should be fixed.
    
    R=bmeurer@chromium.org, jyan@ca.ibm.com, dstence@us.ibm.com, joransiu@ca.ibm.com
    BUG=
    
    Review URL: https://codereview.chromium.org/1306953005
    
    Cr-Commit-Position: refs/heads/master@{#30480}
    8b781ecc
Name
Last commit
Last update
..
OWNERS Loading commit data...
assembler-ppc-inl.h Loading commit data...
assembler-ppc.cc Loading commit data...
assembler-ppc.h Loading commit data...
builtins-ppc.cc Loading commit data...
code-stubs-ppc.cc Loading commit data...
code-stubs-ppc.h Loading commit data...
codegen-ppc.cc Loading commit data...
codegen-ppc.h Loading commit data...
constants-ppc.cc Loading commit data...
constants-ppc.h Loading commit data...
cpu-ppc.cc Loading commit data...
deoptimizer-ppc.cc Loading commit data...
disasm-ppc.cc Loading commit data...
frames-ppc.cc Loading commit data...
frames-ppc.h Loading commit data...
interface-descriptors-ppc.cc Loading commit data...
lithium-codegen-ppc.cc Loading commit data...
lithium-codegen-ppc.h Loading commit data...
lithium-gap-resolver-ppc.cc Loading commit data...
lithium-gap-resolver-ppc.h Loading commit data...
lithium-ppc.cc Loading commit data...
lithium-ppc.h Loading commit data...
macro-assembler-ppc.cc Loading commit data...
macro-assembler-ppc.h Loading commit data...
simulator-ppc.cc Loading commit data...
simulator-ppc.h Loading commit data...