Index: src/ic/x87/handler-compiler-x87.cc |
diff --git a/src/ic/x87/handler-compiler-x87.cc b/src/ic/x87/handler-compiler-x87.cc |
index 00a7e08caf6d91b55cdd591307a5ca832d24d28a..1a2335b8a4bc30243c77a957018b45efce7c64d0 100644 |
--- a/src/ic/x87/handler-compiler-x87.cc |
+++ b/src/ic/x87/handler-compiler-x87.cc |
@@ -343,18 +343,10 @@ |
} |
-void NamedStoreHandlerCompiler::GenerateConstantCheck(Register map_reg, |
- int descriptor, |
+void NamedStoreHandlerCompiler::GenerateConstantCheck(Object* constant, |
Register value_reg, |
- Register scratch, |
Label* miss_label) { |
- DCHECK(!map_reg.is(scratch)); |
- DCHECK(!map_reg.is(value_reg)); |
- DCHECK(!value_reg.is(scratch)); |
- __ LoadInstanceDescriptors(map_reg, scratch); |
- __ mov(scratch, |
- FieldOperand(scratch, DescriptorArray::GetValueOffset(descriptor))); |
- __ cmp(value_reg, scratch); |
+ __ CmpObject(value_reg, handle(constant, isolate())); |
__ j(not_equal, miss_label); |
} |