Commit 561aaa30 authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

[cleanup] Fix signature of RawMachineAssembler::Comment()

Bug: v8:8834
Change-Id: I4d57b15f2d5058511a2c474897a52cac236a6a00
Reviewed-on: https://chromium-review.googlesource.com/c/1488767Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59867}
parent acfe5921
......@@ -564,7 +564,7 @@ void RawMachineAssembler::Unreachable() {
current_block_ = nullptr;
}
void RawMachineAssembler::Comment(std::string msg) {
void RawMachineAssembler::Comment(const std::string& msg) {
size_t length = msg.length() + 1;
char* zone_buffer = zone()->NewArray<char>(length);
MemCopy(zone_buffer, msg.c_str(), length);
......
......@@ -941,7 +941,7 @@ class V8_EXPORT_PRIVATE RawMachineAssembler {
void DebugAbort(Node* message);
void DebugBreak();
void Unreachable();
void Comment(std::string msg);
void Comment(const std::string& msg);
#if DEBUG
void Bind(RawMachineLabel* label, AssemblerDebugInfo info);
......
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