Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 8916c40150ca0944a7f17289661101db731cff59..867c24df9c0889a611308316726e0078076df2b2 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -1542,9 +1542,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
__ Branch(&slow, ne, scratch, Operand(JS_FUNCTION_TYPE)); |
// Null is not instance of anything. |
- __ Branch(&object_not_null, |
- ne, |
- scratch, |
+ __ Branch(&object_not_null, ne, object, |
Operand(isolate()->factory()->null_value())); |
__ li(v0, Operand(Smi::FromInt(1))); |
__ DropAndRet(HasArgsInRegisters() ? 0 : 2); |