• bmeurer's avatar
    [builtins] Add support for NewTarget to Execution::New. · 1dfac69f
    bmeurer authored
    Introduce new builtins Construct and ConstructFunction (in line
    with the Call and CallFunction builtins that we already have) as
    proper bottleneck for Construct and [[Construct]] on JSFunctions.
    Use these builtins to support passing NewTarget from C++ to
    JavaScript land.
    
    Long-term we want the CallConstructStub to be used for
    gathering feedback on entry to construction chain (i.e. the
    initial new Foo), and use the Construct builtins to do the
    actual work inside the construction chain (i.e. calling into
    super and stuff).
    
    MIPS and MIPS64 ports contributed by akos.palfi@imgtec.com.
    
    R=jarin@chromium.org
    BUG=v8:4430
    LOG=n
    
    Review URL: https://codereview.chromium.org/1359583002
    
    Cr-Commit-Position: refs/heads/master@{#30857}
    1dfac69f
builtins-arm.cc 63.6 KB