| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index 68dc804dce5229c7a9f3913bb0a5eb4bab3e9780..64aef11beea5fb19d844fd4f7b9b46dccc1cdd40 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -1459,6 +1459,13 @@ void InstanceofStub::Generate(MacroAssembler* masm) {
|
| // Get the map location in scratch and patch it.
|
| __ GetRelocatedValue(inline_site, scratch, v1); // v1 used as scratch.
|
| __ sd(map, FieldMemOperand(scratch, Cell::kValueOffset));
|
| +
|
| + __ mov(t0, map);
|
| + // Scratch points at the cell payload. Calculate the start of the object.
|
| + __ Dsubu(scratch, scratch, Operand(Cell::kValueOffset - 1));
|
| + __ RecordWriteField(scratch, Cell::kValueOffset, t0, function,
|
| + kRAHasNotBeenSaved, kDontSaveFPRegs,
|
| + OMIT_REMEMBERED_SET, OMIT_SMI_CHECK);
|
| }
|
|
|
| // Register mapping: a3 is object map and a4 is function prototype.
|
|
|