| Index: src/ic/arm/handler-compiler-arm.cc
|
| diff --git a/src/ic/arm/handler-compiler-arm.cc b/src/ic/arm/handler-compiler-arm.cc
|
| index ba499ab308e30946bb5d0b422ce57671e579c8da..5dcbd0f35c3614a28d05cca62ee80302913cafc4 100644
|
| --- a/src/ic/arm/handler-compiler-arm.cc
|
| +++ b/src/ic/arm/handler-compiler-arm.cc
|
| @@ -336,11 +336,18 @@ void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition,
|
| }
|
|
|
|
|
| -void NamedStoreHandlerCompiler::GenerateConstantCheck(Object* constant,
|
| +void NamedStoreHandlerCompiler::GenerateConstantCheck(Register map_reg,
|
| + int descriptor,
|
| Register value_reg,
|
| + Register scratch,
|
| Label* miss_label) {
|
| - __ Move(scratch1(), handle(constant, isolate()));
|
| - __ cmp(value_reg, scratch1());
|
| + 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);
|
| __ b(ne, miss_label);
|
| }
|
|
|
|
|