Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Issue 2651673003: [csa] add utilities for printf-style debugging (Closed)

Created:
3 years, 11 months ago by caitp
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M src/code-stub-assembler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 1 chunk +24 lines, -0 lines 1 comment Download

Messages

Total messages: 17 (8 generated)
caitp
PTAL This doesn't do much, but it makes it easier to write quick prints to ...
3 years, 11 months ago (2017-01-23 19:12:58 UTC) #1
Igor Sheludko
lgtm. BTW, we have a set of useful gbd macros defined in tools/gdbinit. So instead ...
3 years, 11 months ago (2017-01-24 09:24:56 UTC) #4
caitp
On 2017/01/24 09:24:56, Igor Sheludko wrote: > lgtm. > > BTW, we have a set ...
3 years, 11 months ago (2017-01-24 13:16:04 UTC) #5
caitp
https://codereview.chromium.org/2651673003/diff/40001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2651673003/diff/40001/src/code-stub-assembler.cc#newcode8421 src/code-stub-assembler.cc:8421: CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), tagged_value); Is there any way to assert ...
3 years, 11 months ago (2017-01-24 13:30:37 UTC) #6
Igor Sheludko
On 2017/01/24 13:30:37, caitp wrote: > https://codereview.chromium.org/2651673003/diff/40001/src/code-stub-assembler.cc > File src/code-stub-assembler.cc (right): > > https://codereview.chromium.org/2651673003/diff/40001/src/code-stub-assembler.cc#newcode8421 > ...
3 years, 11 months ago (2017-01-24 14:20:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2651673003/40001
3 years, 11 months ago (2017-01-24 15:11:25 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_chromium_gn_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/31725)
3 years, 11 months ago (2017-01-24 15:17:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2651673003/40001
3 years, 11 months ago (2017-01-25 15:02:02 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 15:46:03 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/c18d4216a431d54813e79a7719e17a30c8a...

Powered by Google App Engine
This is Rietveld 408576698