| Index: src/arm64/code-stubs-arm64.cc
|
| diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc
|
| index 5feefe0d6d36a16cd02eae4a7d545317a47ca415..8397351e5959946bcbef801fd37d4560b558979d 100644
|
| --- a/src/arm64/code-stubs-arm64.cc
|
| +++ b/src/arm64/code-stubs-arm64.cc
|
| @@ -1544,6 +1544,12 @@ void InstanceofStub::Generate(MacroAssembler* masm) {
|
| // We have a cell, so need another level of dereferencing.
|
| __ Ldr(scratch1, MemOperand(scratch1));
|
| __ Str(map, FieldMemOperand(scratch1, Cell::kValueOffset));
|
| +
|
| + __ Mov(x14, map);
|
| + // Scratch points at the cell payload. Calculate the start of the object.
|
| + __ RecordWriteField(scratch1, Cell::kValueOffset, x14, function,
|
| + kLRHasNotBeenSaved, kDontSaveFPRegs,
|
| + OMIT_REMEMBERED_SET, OMIT_SMI_CHECK);
|
| } else {
|
| __ StoreRoot(function, Heap::kInstanceofCacheFunctionRootIndex);
|
| __ StoreRoot(map, Heap::kInstanceofCacheMapRootIndex);
|
|
|