Commit c98a5101 authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

s390x: implement LoadTaggedSignedField

Change-Id: I04813fbb55b60d60a829dbb8970637a7cd32c813
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3437407Reviewed-by: 's avatarMilad Farazmand <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#78930}
parent beed8f6a
...@@ -891,6 +891,16 @@ void TurboAssembler::DecompressAnyTagged(Register destination, ...@@ -891,6 +891,16 @@ void TurboAssembler::DecompressAnyTagged(Register destination,
agr(destination, kRootRegister); agr(destination, kRootRegister);
RecordComment("]"); RecordComment("]");
} }
void TurboAssembler::LoadTaggedSignedField(Register destination,
MemOperand field_operand) {
if (COMPRESS_POINTERS_BOOL) {
DecompressTaggedSigned(destination, field_operand);
} else {
LoadU64(destination, field_operand);
}
}
void MacroAssembler::RecordWriteField(Register object, int offset, void MacroAssembler::RecordWriteField(Register object, int offset,
Register value, Register slot_address, Register value, Register slot_address,
LinkRegisterStatus lr_status, LinkRegisterStatus lr_status,
......
...@@ -1328,6 +1328,7 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase { ...@@ -1328,6 +1328,7 @@ class V8_EXPORT_PRIVATE TurboAssembler : public TurboAssemblerBase {
void LoadTaggedPointerField(const Register& destination, void LoadTaggedPointerField(const Register& destination,
const MemOperand& field_operand, const MemOperand& field_operand,
const Register& scratch = no_reg); const Register& scratch = no_reg);
void LoadTaggedSignedField(Register destination, MemOperand field_operand);
// Loads a field containing any tagged value and decompresses it if necessary. // Loads a field containing any tagged value and decompresses it if necessary.
void LoadAnyTaggedField(const Register& destination, void LoadAnyTaggedField(const Register& destination,
......
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