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

Bug: v8:8834
Change-Id: I4d57b15f2d5058511a2c474897a52cac236a6a00
Reviewed-on: https://chromium-review.googlesource.com/c/1488767
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59867}
This commit is contained in:
Igor Sheludko 2019-02-26 13:29:54 +01:00 committed by Commit Bot
parent acfe59212a
commit 561aaa3066
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);