Skip to content

Commit c028766

Browse files
richardlaunodejs-github-bot
authored andcommitted
Revert "deps: V8: cherry-pick 7107287"
This reverts commit 142b593. PR-URL: #62894 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Abdirahim Musse <abdirahim.musse@ibm.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 9531947 commit c028766

6 files changed

Lines changed: 12 additions & 33 deletions

File tree

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Reset this number to 0 on major V8 upgrades.
4141
# Increment by one for each non-official patch applied to deps/v8.
42-
'v8_embedder_string': '-node.18',
42+
'v8_embedder_string': '-node.17',
4343

4444
##### V8 defaults for Node.js #####
4545

deps/v8/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ config("toolchain") {
15831583
if (v8_current_cpu == "ppc64") {
15841584
defines += [ "V8_TARGET_ARCH_PPC64" ]
15851585
cflags += [ "-ffp-contract=off" ]
1586-
if (current_os == "aix" and !is_clang) {
1586+
if (current_os == "aix") {
15871587
cflags += [
15881588
# Work around AIX ceil, trunc and round oddities.
15891589
"-mcpu=power5+",

deps/v8/src/builtins/ppc/builtins-ppc.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4219,19 +4219,6 @@ void Builtins::Generate_CEntry(MacroAssembler* masm, int result_size,
42194219

42204220
// If return value is on the stack, pop it to registers.
42214221
if (needs_return_buffer) {
4222-
Label done;
4223-
if (switch_to_central_stack) {
4224-
Label no_stack_change;
4225-
__ CmpU64(kOldSPRegister, Operand(0), r0);
4226-
__ beq(&no_stack_change);
4227-
__ addi(r3, kOldSPRegister,
4228-
Operand((kStackFrameExtraParamSlot + 1) * kSystemPointerSize));
4229-
__ b(&done);
4230-
__ bind(&no_stack_change);
4231-
}
4232-
__ addi(r3, sp,
4233-
Operand((kStackFrameExtraParamSlot + 1) * kSystemPointerSize));
4234-
__ bind(&done);
42354222
__ LoadU64(r4, MemOperand(r3, kSystemPointerSize));
42364223
__ LoadU64(r3, MemOperand(r3));
42374224
}

deps/v8/src/compiler/turboshaft/operations.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ class InputsRepFactory {
526526
};
527527
};
528528

529-
struct __attribute__((packed)) EffectDimensions {
529+
struct EffectDimensions {
530530
// Produced by loads, consumed by operations that should not move before loads
531531
// because they change memory.
532532
bool load_heap_memory : 1;
@@ -621,7 +621,7 @@ static_assert(sizeof(EffectDimensions) == sizeof(EffectDimensions::Bits));
621621
// they become more restricted in their movement. Note that calls are not the
622622
// most side-effectful operations, as they do not leave the heap in an
623623
// inconsistent state, so they do not need to be marked as raw heap access.
624-
struct __attribute__((packed)) OpEffects {
624+
struct OpEffects {
625625
EffectDimensions produces;
626626
EffectDimensions consumes;
627627

@@ -2878,7 +2878,7 @@ struct ConstantOp : FixedArityOperationT<0, ConstantOp> {
28782878
// When result_rep is RegisterRepresentation::Compressed(), then the load does
28792879
// not decompress the value.
28802880
struct LoadOp : OperationT<LoadOp> {
2881-
struct __attribute__((packed)) Kind {
2881+
struct Kind {
28822882
// The `base` input is a tagged pointer to a HeapObject.
28832883
bool tagged_base : 1;
28842884
// The effective address might be unaligned. This is only set to true if

deps/v8/src/execution/simulator.h

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,13 @@ class GeneratedCode {
199199
return fn(args...);
200200
#else
201201
// AIX ABI requires function descriptors (FD). Artificially create a pseudo
202-
// FD to ensure correct dispatch to generated code.
203-
void* function_desc[3];
204-
Signature* fn;
205-
asm("std %1, 0(%2)\n\t"
206-
"li 0, 0\n\t"
207-
"std 0, 8(%2)\n\t"
208-
"std 0, 16(%2)\n\t"
209-
"mr %0, %2\n\t"
210-
: "=r"(fn)
211-
: "r"(fn_ptr_), "r"(function_desc)
212-
: "memory", "0");
202+
// FD to ensure correct dispatch to generated code. The 'volatile'
203+
// declaration is required to avoid the compiler from not observing the
204+
// alias of the pseudo FD to the function pointer, and hence, optimizing the
205+
// pseudo FD declaration/initialization away.
206+
volatile Address function_desc[] = {reinterpret_cast<Address>(fn_ptr_), 0,
207+
0};
208+
Signature* fn = reinterpret_cast<Signature*>(function_desc);
213209
return fn(args...);
214210
#endif // V8_OS_ZOS
215211
#else

deps/v8/src/trap-handler/handler-shared.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ namespace v8 {
2424
namespace internal {
2525
namespace trap_handler {
2626

27-
#if defined(V8_OS_AIX)
28-
__thread bool TrapHandlerGuard::is_active_ = 0;
29-
#else
3027
thread_local bool TrapHandlerGuard::is_active_ = 0;
31-
#endif
3228

3329
size_t gNumCodeObjects = 0;
3430
CodeProtectionInfoListEntry* gCodeObjects = nullptr;

0 commit comments

Comments
 (0)