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

ppc: allow MemOp offset to be 64 bit

Change-Id: I1d743994115e659d3f6bf0ce17938b40d1467e5f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3144914Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#76696}
parent d17564b3
......@@ -187,13 +187,13 @@ Operand Operand::EmbeddedStringConstant(const StringConstantBase* str) {
return result;
}
MemOperand::MemOperand(Register rn, int32_t offset)
MemOperand::MemOperand(Register rn, int64_t offset)
: ra_(rn), offset_(offset), rb_(no_reg) {}
MemOperand::MemOperand(Register ra, Register rb)
: ra_(ra), offset_(0), rb_(rb) {}
MemOperand::MemOperand(Register ra, Register rb, int32_t offset)
MemOperand::MemOperand(Register ra, Register rb, int64_t offset)
: ra_(ra), offset_(offset), rb_(rb) {}
void Assembler::AllocateAndInstallRequestedHeapObjects(Isolate* isolate) {
......
......@@ -133,13 +133,13 @@ class V8_EXPORT_PRIVATE Operand {
// Alternatively we can have a 16bit signed value immediate
class V8_EXPORT_PRIVATE MemOperand {
public:
explicit MemOperand(Register rn, int32_t offset = 0);
explicit MemOperand(Register rn, int64_t offset = 0);
explicit MemOperand(Register ra, Register rb);
explicit MemOperand(Register ra, Register rb, int32_t offset);
explicit MemOperand(Register ra, Register rb, int64_t offset);
int32_t offset() const { return offset_; }
int64_t offset() const { return offset_; }
// PowerPC - base register
Register ra() const { return ra_; }
......@@ -148,7 +148,7 @@ class V8_EXPORT_PRIVATE MemOperand {
private:
Register ra_; // base
int32_t offset_; // offset
int64_t offset_; // offset
Register rb_; // index
friend class Assembler;
......
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