зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1341067 followup - Some renaming review nits I forgot to qref. r=me
This commit is contained in:
Родитель
c34e01ac20
Коммит
cc8234749d
|
@ -997,7 +997,7 @@ BaselineCacheIRCompiler::emitStoreTypedObjectScalarProperty()
|
|||
masm.addPtr(offsetAddr, scratch1);
|
||||
Address dest(scratch1, 0);
|
||||
|
||||
BaselineStoreToTypedArray(cx_, masm, type, val, dest, scratch2, failure->label());
|
||||
StoreToTypedArray(cx_, masm, type, val, dest, scratch2, failure->label());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1224,7 +1224,7 @@ BaselineCacheIRCompiler::emitStoreTypedElement()
|
|||
masm.push(scratch2);
|
||||
|
||||
Label fail;
|
||||
BaselineStoreToTypedArray(cx_, masm, type, val, dest, scratch2, &fail);
|
||||
StoreToTypedArray(cx_, masm, type, val, dest, scratch2, &fail);
|
||||
masm.pop(scratch2);
|
||||
masm.jump(&done);
|
||||
|
||||
|
|
|
@ -1109,9 +1109,9 @@ EmitICUnboxedPreBarrier(MacroAssembler& masm, const BaseIndex& address, JSValueT
|
|||
|
||||
template <typename T>
|
||||
void
|
||||
BaselineStoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const T& dest, Register scratch,
|
||||
Label* failure)
|
||||
StoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const T& dest, Register scratch,
|
||||
Label* failure)
|
||||
{
|
||||
Label done;
|
||||
|
||||
|
@ -1172,14 +1172,14 @@ BaselineStoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type
|
|||
}
|
||||
|
||||
template void
|
||||
BaselineStoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const Address& dest, Register scratch,
|
||||
Label* failure);
|
||||
StoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const Address& dest, Register scratch,
|
||||
Label* failure);
|
||||
|
||||
template void
|
||||
BaselineStoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const BaseIndex& dest, Register scratch,
|
||||
Label* failure);
|
||||
StoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const BaseIndex& dest, Register scratch,
|
||||
Label* failure);
|
||||
|
||||
//
|
||||
// In_Fallback
|
||||
|
|
|
@ -1718,9 +1718,9 @@ void EmitICUnboxedPreBarrier(MacroAssembler &masm, const T& address, JSValueType
|
|||
// If the value could not be converted to the appropriate format, jump to
|
||||
// failure.
|
||||
template <typename T>
|
||||
void BaselineStoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const T& dest, Register scratch,
|
||||
Label* failure);
|
||||
void StoreToTypedArray(JSContext* cx, MacroAssembler& masm, Scalar::Type type,
|
||||
const ValueOperand& value, const T& dest, Register scratch,
|
||||
Label* failure);
|
||||
|
||||
} // namespace jit
|
||||
} // namespace js
|
||||
|
|
|
@ -390,7 +390,7 @@ IonCacheIRCompiler::init()
|
|||
case CacheKind::SetElem: {
|
||||
IonSetPropertyIC* ic = ic_->asSetPropertyIC();
|
||||
|
||||
available.add(ic->temp1());
|
||||
available.add(ic->temp());
|
||||
|
||||
liveRegs_.emplace(ic->liveRegs());
|
||||
|
||||
|
@ -1240,7 +1240,7 @@ IonCacheIRCompiler::emitStoreTypedObjectScalarProperty()
|
|||
LoadTypedThingData(masm, layout, obj, scratch1);
|
||||
Address dest(scratch1, offset);
|
||||
|
||||
BaselineStoreToTypedArray(cx_, masm, type, val, dest, scratch2, failure->label());
|
||||
StoreToTypedArray(cx_, masm, type, val, dest, scratch2, failure->label());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ IonIC::scratchRegisterForEntryJump()
|
|||
}
|
||||
case CacheKind::SetProp:
|
||||
case CacheKind::SetElem:
|
||||
return asSetPropertyIC()->temp1();
|
||||
return asSetPropertyIC()->temp();
|
||||
case CacheKind::GetName:
|
||||
case CacheKind::In:
|
||||
MOZ_CRASH("Baseline-specific for now");
|
||||
|
|
|
@ -208,7 +208,7 @@ class IonSetPropertyIC : public IonIC
|
|||
LiveRegisterSet liveRegs_;
|
||||
|
||||
Register object_;
|
||||
Register temp1_;
|
||||
Register temp_;
|
||||
FloatRegister maybeTempDouble_;
|
||||
FloatRegister maybeTempFloat32_;
|
||||
ConstantOrRegister id_;
|
||||
|
@ -218,14 +218,14 @@ class IonSetPropertyIC : public IonIC
|
|||
bool guardHoles_ : 1;
|
||||
|
||||
public:
|
||||
IonSetPropertyIC(CacheKind kind, LiveRegisterSet liveRegs, Register object, Register temp1,
|
||||
IonSetPropertyIC(CacheKind kind, LiveRegisterSet liveRegs, Register object, Register temp,
|
||||
FloatRegister maybeTempDouble, FloatRegister maybeTempFloat32,
|
||||
const ConstantOrRegister& id, const ConstantOrRegister& rhs, bool strict,
|
||||
bool needsTypeBarrier, bool guardHoles)
|
||||
: IonIC(kind),
|
||||
liveRegs_(liveRegs),
|
||||
object_(object),
|
||||
temp1_(temp1),
|
||||
temp_(temp),
|
||||
maybeTempDouble_(maybeTempDouble),
|
||||
maybeTempFloat32_(maybeTempFloat32),
|
||||
id_(id),
|
||||
|
@ -240,7 +240,7 @@ class IonSetPropertyIC : public IonIC
|
|||
ConstantOrRegister id() const { return id_; }
|
||||
ConstantOrRegister rhs() const { return rhs_; }
|
||||
|
||||
Register temp1() const { return temp1_; }
|
||||
Register temp() const { return temp_; }
|
||||
FloatRegister maybeTempDouble() const { return maybeTempDouble_; }
|
||||
FloatRegister maybeTempFloat32() const { return maybeTempFloat32_; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче