• Ross McIlroy's avatar
    [Ast] Teach Ast Printer to print raw literal values. · c60934e9
    Ross McIlroy authored
    Converts the ast prettyprinter to printing literals from the raw values
    rather than internalized on-heap strings. This enables ast printing before
    internalizing, and means we can avoid use of the isolate in the interpreter's
    off-thread phase.
    
    Also removes --print-builtin-ast and relies on just --print-ast to print
    everything.
    
    Finally, converts FunctionLiteral's debug_name function to return a
    char[] which is created from the raw name literal where it exists, rather
    than relying on the value having been internalized.
    
    BUG=v8:5203
    
    Change-Id: I0e358d6acc9ae4516ed49e7a763e208fea5fcf66
    Reviewed-on: https://chromium-review.googlesource.com/749261
    Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
    Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#49119}
    c60934e9
ast.cc 30.3 KB