diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc index e93fc85878..f6ed3a23e8 100644 --- a/src/builtins/arm/builtins-arm.cc +++ b/src/builtins/arm/builtins-arm.cc @@ -1867,7 +1867,7 @@ void OnStackReplacement(MacroAssembler* masm, OsrSourceTier source, { Label next; __ Move(r1, ExternalReference::address_of_FLAG_trace_osr()); - __ ldr(r1, MemOperand(r1)); + __ ldrsb(r1, MemOperand(r1)); __ tst(r1, Operand(0xFF)); // Mask to the LSB. __ b(eq, &next); diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc index 2cb666aad6..35cf34afc0 100644 --- a/src/builtins/arm64/builtins-arm64.cc +++ b/src/builtins/arm64/builtins-arm64.cc @@ -2101,7 +2101,7 @@ void OnStackReplacement(MacroAssembler* masm, OsrSourceTier source, { Label next; __ Mov(x1, ExternalReference::address_of_FLAG_trace_osr()); - __ Ldr(x1, MemOperand(x1)); + __ Ldrsb(x1, MemOperand(x1)); __ Tst(x1, 0xFF); // Mask to the LSB. __ B(eq, &next);