• wingo's avatar
    Resolve references to "this" the same way as normal variables · 06a792b7
    wingo authored
    Make the parser handle references to "this" as unresolved variables, so the
    same logic as for the rest of function parameters is used for the receiver.
    Minor additions to the code generation handle copying the receiver to the
    context, along with the rest of the function parameters.
    
    Based on work by Adrian Perez de Castro <aperez@igalia.com>.
    
    BUG=v8:2700
    LOG=N
    
    Review URL: https://codereview.chromium.org/1130733003
    
    Cr-Commit-Position: refs/heads/master@{#28263}
    06a792b7
scopeinfo.cc 22.1 KB