Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index dfbadcce1175f0014e661ab4db42f860ea82dd4f..2e19fb5abab47a437d8d9a0a8eeadb760cfd20a0 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -335,19 +335,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); |
- __ movp(scratch, |
- FieldOperand(scratch, DescriptorArray::GetValueOffset(descriptor))); |
- __ cmpp(value_reg, scratch); |
+ __ Cmp(value_reg, handle(constant, isolate())); |
__ j(not_equal, miss_label); |
} |