ppc: allow MemOp offset to be 64 bit

Change-Id: I1d743994115e659d3f6bf0ce17938b40d1467e5f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3144914
Reviewed-by: Milad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#76696}
This commit is contained in:
Junliang Yan 2021-09-07 10:11:57 -04:00 committed by V8 LUCI CQ
parent d17564b38a
commit 099eae9e50
2 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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;