• mbrandy's avatar
    PPC: [es6] Introduce spec compliant IsConstructor. · 623e8021
    mbrandy authored
    Port 8fe3ac07
    
    Original commit message:
        There was already a bit on the Map named "function with prototype",
        which basically meant that the Map was a map for a JSFunction that could
        be used as a constructor. Now this CL generalizes that bit to
        IsConstructor, which says that whatever (Heap)Object you are looking at
        can be used as a constructor (i.e. the bit is also set for bound
        functions that can be used as constructors and proxies that have a
        [[Construct]] internal method).
    
        This way we have a single chokepoint for IsConstructor checking, which
        allows us to get rid of the various ways in which we tried to guess
        whether something could be used as a constructor or not.
    
        Drive-by-fix: Renamed IsConstructor on FunctionKind to
        IsClassConstructor to resolve the weird name clash, and the
        IsClassConstructor name also matches the spec.
    
    R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
    BUG=v8:4413, v8:4430
    LOG=n
    
    Review URL: https://codereview.chromium.org/1382673002
    
    Cr-Commit-Position: refs/heads/master@{#31027}
    623e8021
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...