Description[csa] add utilities for printf-style debugging
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}
Committed: https://chromium.googlesource.com/v8/v8/+/c18d4216a431d54813e79a7719e17a30c8a3ec24
Patch Set 1 #Patch Set 2 : [code-stub-assembler] add utilities for printf-style debugging #
Total comments: 2
Patch Set 3 : rename DebugPrint macro to Print #
Total comments: 1
Messages
Total messages: 17 (8 generated)
|