• Ross McIlroy's avatar
    [Ast] Teach Ast Printer to print raw literal values. · ff4e4ab4
    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: Ib69f754e254736f415db38713e6209465817e6f1
    Reviewed-on: https://chromium-review.googlesource.com/758681Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#49276}
    ff4e4ab4
ast-value-factory.cc 11.5 KB