Commit 250a6480 authored by Adam Kallai's avatar Adam Kallai Committed by V8 LUCI CQ

Fix the build on Windows on ARM

SNPrintF function is moved into base/strings.h [1],
so it needs to fix the scope of this function
for Windows on ARM related source as well.

[1] https://chromium-review.googlesource.com/c/v8/v8/+/2972732

Bug: None
Change-Id: Ia9934f17941558b6338f28900f069766507c87b2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2982016Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75339}
parent c581e790
......@@ -227,8 +227,8 @@ void EmitUnwindData(PlatformEmbeddedFileWriterWin* w,
// later.
code_chunks.push_back(allowed_chunk_len);
fp_adjustments.push_back(xdata_fp_adjustments[j]);
i::SNPrintF(unwind_info_full_symbol, "%s_%u", unwind_info_symbol,
code_chunks.size());
base::SNPrintF(unwind_info_full_symbol, "%s_%u", unwind_info_symbol,
code_chunks.size());
w->DeclareRvaToSymbol(embedded_blob_data_symbol,
builtin_start_offset + chunk_start);
w->DeclareRvaToSymbol(unwind_info_full_symbol.begin());
......@@ -244,7 +244,8 @@ void EmitUnwindData(PlatformEmbeddedFileWriterWin* w,
w->StartXdataSection();
{
for (size_t i = 0; i < code_chunks.size(); i++) {
i::SNPrintF(unwind_info_full_symbol, "%s_%u", unwind_info_symbol, i + 1);
base::SNPrintF(unwind_info_full_symbol, "%s_%u", unwind_info_symbol,
i + 1);
w->DeclareLabel(unwind_info_full_symbol.begin());
std::vector<uint8_t> xdata =
win64_unwindinfo::GetUnwindInfoForBuiltinFunction(code_chunks[i],
......
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