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

Unified Diff: src/code-stub-assembler.h

Issue 2651673003: [csa] add utilities for printf-style debugging (Closed)
Patch Set: [code-stub-assembler] add utilities for printf-style debugging Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index db16ab4dd73c78fa9255b2ab5ef561a3ff42fc05..226a4a212b5fa60513b9bcf06a4e84a333cae032 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1167,6 +1167,13 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
Node* deferred_on_resolve,
Node* deferred_on_reject, Node* context);
+ // Support for printf-style debugging
+ void Print(const char* s);
+ void DebugPrint(const char* prefix, Node* tagged_value);
Igor Sheludko 2017/01/24 09:24:56 How about calling all these functions just Print()
caitp 2017/01/24 13:16:04 Sounds good
+ inline void DebugPrint(Node* tagged_value) {
+ return DebugPrint(nullptr, tagged_value);
+ }
+
protected:
void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof,
Label* if_found, Variable* var_name_index,
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698