Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 3ed7b12a37426cd32a558262a662876a1b1136dd..efcc1aefcefb63d31444d9101dee4f5cfc57a00a 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1441,7 +1441,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
__ b(ne, &slow); |
// Null is not instance of anything. |
- __ cmp(scratch, Operand(isolate()->factory()->null_value())); |
+ __ cmp(object, Operand(isolate()->factory()->null_value())); |
__ b(ne, &object_not_null); |
if (ReturnTrueFalseObject()) { |
__ Move(r0, factory->false_value()); |