| Index: src/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc
|
| index 810414dd71df91bc050fbbccf73e5900ac86676a..9f0daa16210e4d40e02307ab16c891750492efbf 100644
|
| --- a/src/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/mips64/lithium-codegen-mips64.cc
|
| @@ -2987,7 +2987,7 @@ void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
|
| // Read int value directly from upper half of the smi.
|
| STATIC_ASSERT(kSmiTag == 0);
|
| STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 32);
|
| - offset += kPointerSize / 2;
|
| + offset = SmiWordOffset(offset);
|
| representation = Representation::Integer32();
|
| }
|
| __ Load(result, FieldMemOperand(object, offset), representation);
|
| @@ -3261,7 +3261,7 @@ void LCodeGen::DoLoadKeyedFixedArray(LLoadKeyed* instr) {
|
| // Read int value directly from upper half of the smi.
|
| STATIC_ASSERT(kSmiTag == 0);
|
| STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 32);
|
| - offset += kPointerSize / 2;
|
| + offset = SmiWordOffset(offset);
|
| }
|
|
|
| __ Load(result, MemOperand(store_base, offset), representation);
|
| @@ -4208,7 +4208,7 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
|
| __ AssertSmi(scratch2);
|
| }
|
| // Store int value directly to upper half of the smi.
|
| - offset += kPointerSize / 2;
|
| + offset = SmiWordOffset(offset);
|
| representation = Representation::Integer32();
|
| }
|
| MemOperand operand = FieldMemOperand(destination, offset);
|
| @@ -4474,7 +4474,7 @@ void LCodeGen::DoStoreKeyedFixedArray(LStoreKeyed* instr) {
|
| // Store int value directly to upper half of the smi.
|
| STATIC_ASSERT(kSmiTag == 0);
|
| STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 32);
|
| - offset += kPointerSize / 2;
|
| + offset = SmiWordOffset(offset);
|
| representation = Representation::Integer32();
|
| }
|
|
|
|
|