Commit 5faf7912 authored by jgruber's avatar jgruber Committed by Commit Bot

[csa] Enable CSA::Print family of functions in non-debug modes

CSA::Print() is only used during development and can often be useful
in release builds.

Bug: 
Change-Id: Ib6baf5f5275439a468a0f63a00ed446ae11a8de2
Reviewed-on: https://chromium-review.googlesource.com/579190Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46786}
parent fb98b0c2
......@@ -9570,16 +9570,13 @@ Node* CodeStubAssembler::MarkerIsNotFrameType(Node* marker_or_function,
}
void CodeStubAssembler::Print(const char* s) {
#ifdef DEBUG
std::string formatted(s);
formatted += "\n";
CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
StringConstant(formatted.c_str()));
#endif
}
void CodeStubAssembler::Print(const char* prefix, Node* tagged_value) {
#ifdef DEBUG
if (prefix != nullptr) {
std::string formatted(prefix);
formatted += ": ";
......@@ -9589,7 +9586,6 @@ void CodeStubAssembler::Print(const char* prefix, Node* tagged_value) {
HeapConstant(string));
}
CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
#endif
}
} // namespace internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment