deps: cherry-pick fc0ddf5 from upstream V8 · nodejs/node@44d5401 (original) (raw)

Original file line number Diff line number Diff line change
@@ -561,13 +561,11 @@ void PlatformDependentEmbeddedFileWriter::AlignToCodeAlignment() {
561 561 }
562 562
563 563 void PlatformDependentEmbeddedFileWriter::AlignToDataAlignment() {
564 -#if defined(V8_OS_WIN) && defined(V8_TARGET_ARCH_ARM64)
565 -// On Windows ARM64, instruction "ldr xt,[xn,v8_Default_embedded_blob_]" is
566 -// generated by clang-cl to load elements in v8_Default_embedded_blob_.
567 -// The generated instruction has scale 3 which requires the load target to be
568 -// aligned at 8 bytes (2^3).
564 +// On Windows ARM64, s390, PPC and possibly more platforms, aligned load
565 +// instructions are used to retrieve v8_Default_embedded_blob_ and/or
566 +// v8_Default_embedded_blob_size_. The generated instructions require the
567 +// load target to be aligned at 8 bytes (2^3).
569 568 fprintf(fp_, ".balign 8\n");
570 -#endif
571 569 }
572 570
573 571 void PlatformDependentEmbeddedFileWriter::Comment(const char* string) {