@@ -997,13 +997,14 @@ void IRGenerator::emitGuardGetterSetterSlot(NativeObject* holder,
997997 // the first IC stub.
998998 if (!isFirstStub_) {
999999 bool isGetter = kind == AccessorKind::Getter;
1000- JSObject* accessor = isGetter ? holder->getGetter(prop)
1001- : holder->getSetter(prop);
1000+ JSObject* accessor =
1001+ isGetter ? holder->getGetter(prop) : holder->getSetter(prop);
10021002 JSFunction* fun = &accessor->as<JSFunction>();
10031003 if (fun->hasBaseScript()) {
1004- ValOperandId getterSetterId = EmitLoadSlot(writer, holder, holderId, slot);
1005- ObjOperandId functionId = writer.loadGetterSetterFunction(getterSetterId,
1006- isGetter);
1004+ ValOperandId getterSetterId =
1005+ EmitLoadSlot(writer, holder, holderId, slot);
1006+ ObjOperandId functionId =
1007+ writer.loadGetterSetterFunction(getterSetterId, isGetter);
10071008 writer.saveScriptedGetterSetterCallee(functionId);
10081009 writer.guardFunctionScript(functionId, fun->baseScript());
10091010 return;
@@ -1043,8 +1044,7 @@ void GetPropIRGenerator::emitCallGetterResultGuards(NativeObject* obj,
10431044 ObjOperandId holderId = writer.loadObject(holder);
10441045 TestMatchingHolder(writer, holder, holderId);
10451046
1046- emitGuardGetterSetterSlot(holder, prop, holderId,
1047- AccessorKind::Getter,
1047+ emitGuardGetterSetterSlot(holder, prop, holderId, AccessorKind::Getter,
10481048 /* holderIsConstant = */ true);
10491049 } else {
10501050 emitGuardGetterSetterSlot(holder, prop, objId, AccessorKind::Getter);
@@ -1993,8 +1993,7 @@ AttachDecision GetPropIRGenerator::tryAttachDOMProxyUnshadowed(
19931993 MOZ_ASSERT(kind == NativeGetPropKind::NativeGetter ||
19941994 kind == NativeGetPropKind::ScriptedGetter);
19951995 MOZ_ASSERT(!isSuper());
1996- emitGuardGetterSetterSlot(holder, *prop, holderId,
1997- AccessorKind::Getter,
1996+ emitGuardGetterSetterSlot(holder, *prop, holderId, AccessorKind::Getter,
19981997 /* holderIsConstant = */ true);
19991998 emitCallGetterResultNoGuards(kind, nativeProtoObj, holder, *prop,
20001999 receiverId);
@@ -3647,14 +3646,12 @@ AttachDecision GetNameIRGenerator::tryAttachGlobalNameGetter(ObjOperandId objId,
36473646 // Shape guard holder.
36483647 ObjOperandId holderId = writer.loadObject(holder);
36493648 writer.guardShape(holderId, holder->shape());
3650- emitGuardGetterSetterSlot(holder, *prop, holderId,
3651- AccessorKind::Getter,
3649+ emitGuardGetterSetterSlot(holder, *prop, holderId, AccessorKind::Getter,
36523650 /* holderIsConstant = */ true);
36533651 } else {
36543652 // Note: pass true for |holderIsConstant| because the holder must be the
36553653 // current global object.
3656- emitGuardGetterSetterSlot(holder, *prop, globalId,
3657- AccessorKind::Getter,
3654+ emitGuardGetterSetterSlot(holder, *prop, globalId, AccessorKind::Getter,
36583655 /* holderIsConstant = */ true);
36593656 }
36603657
@@ -4900,8 +4897,7 @@ AttachDecision SetPropIRGenerator::tryAttachSetter(HandleObject obj,
49004897 ObjOperandId holderId = writer.loadObject(holder);
49014898 TestMatchingHolder(writer, holder, holderId);
49024899
4903- emitGuardGetterSetterSlot(holder, *prop, holderId,
4904- AccessorKind::Setter,
4900+ emitGuardGetterSetterSlot(holder, *prop, holderId, AccessorKind::Setter,
49054901 /* holderIsConstant = */ true);
49064902 } else {
49074903 emitGuardGetterSetterSlot(holder, *prop, objId, AccessorKind::Setter);
0 commit comments