Commit 82204eac authored by caitp's avatar caitp Committed by Commit bot

[csa] fix CallRuntime() call in CSA::Print(Node* tagged_value)

emit %DebugPrint(tagged_value) instead of %GlobalPrint(tagged_value) to
avoid a CONVERT_ARG_CHECKED() failure when tagged value is not a string.

BUG=v8:5268
R=ishell@chromium.org, bmeurer@chromium.org

Review-Url: https://codereview.chromium.org/2663633002
Cr-Commit-Position: refs/heads/master@{#42760}
parent a8638789
......@@ -8389,7 +8389,7 @@ void CodeStubAssembler::Print(const char* prefix, Node* tagged_value) {
CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
HeapConstant(string));
}
CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), tagged_value);
CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
#endif
}
......
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