| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index 9649e420d81c20fdfe8496e87ee94e5ef4add9b1..cd642e354d739f859f8d7318e472a0582b6d316f 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -1531,6 +1531,9 @@ void InstanceOfStub::Generate(MacroAssembler* masm) {
|
| // Proxy-case: Call the %HasInPrototypeChain runtime function.
|
| __ bind(&proxy_case);
|
| __ Push(object, function_prototype);
|
| + // Invalidate the instanceof cache.
|
| + __ li(scratch, Operand(Smi::FromInt(0)));
|
| + __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex);
|
| __ TailCallRuntime(Runtime::kHasInPrototypeChain, 2, 1);
|
|
|
| // Slow-case: Call the %InstanceOf runtime function.
|
|
|