Index: src/ic/arm64/handler-compiler-arm64.cc |
diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc |
index 9e414e2d40f428de76c07752e959aeee70190ab7..2d5999ab4794a8b24d1ea61d9541b3966ddb5196 100644 |
--- a/src/ic/arm64/handler-compiler-arm64.cc |
+++ b/src/ic/arm64/handler-compiler-arm64.cc |
@@ -380,18 +380,11 @@ |
} |
-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); |
- __ Ldr(scratch, |
- FieldMemOperand(scratch, DescriptorArray::GetValueOffset(descriptor))); |
- __ Cmp(value_reg, scratch); |
+ __ LoadObject(scratch1(), handle(constant, isolate())); |
+ __ Cmp(value_reg, scratch1()); |
__ B(ne, miss_label); |
} |