• caitp's avatar
    [csa] add utilities for printf-style debugging · c18d4216
    caitp authored
    Adds CSA::Print(const char* s), which generates a runtime call to
    Runtime::kGlobalPrint with a line-terminated ASCII string constant,
    and CSA::DebugPrint(const char* prefix, Node* tagged_value), which
    emits a runtime call to Runtime::kDebugPrint() with the tagged
    value, optionally prefixed by an ascii string constant.
    
    These simplify debugging TF builtins by providing a tool to easily
    observe the contents of values at arbitrary points in a program,
    without stepping endlessly through assembly in a debugger, and to
    easily observe the path taken through a TF builtin.
    
    These methods do not generate code in release builds.
    
    BUG=v8:5268
    R=ishell@chromium.org, danno@chromium.org, bmeurer@chromium.org
    
    Review-Url: https://codereview.chromium.org/2651673003
    Cr-Commit-Position: refs/heads/master@{#42660}
    c18d4216
code-stub-assembler.h 55.3 KB