| Index: src/ic/mips/handler-compiler-mips.cc
|
| diff --git a/src/ic/mips/handler-compiler-mips.cc b/src/ic/mips/handler-compiler-mips.cc
|
| index 3167dea9d326a134bf029946d306fbbfdd737f50..f8ebc9407c825e22f6547d187a9106aa5ace3ca0 100644
|
| --- a/src/ic/mips/handler-compiler-mips.cc
|
| +++ b/src/ic/mips/handler-compiler-mips.cc
|
| @@ -332,11 +332,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) {
|
| - __ li(scratch1(), handle(constant, isolate()));
|
| - __ Branch(miss_label, ne, value_reg, Operand(scratch1()));
|
| + DCHECK(!map_reg.is(scratch));
|
| + DCHECK(!map_reg.is(value_reg));
|
| + DCHECK(!value_reg.is(scratch));
|
| + __ LoadInstanceDescriptors(map_reg, scratch);
|
| + __ lw(scratch,
|
| + FieldMemOperand(scratch, DescriptorArray::GetValueOffset(descriptor)));
|
| + __ Branch(miss_label, ne, value_reg, Operand(scratch));
|
| }
|
|
|
|
|
|
|