зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1420158 - Whitespace cleanup. r=me
--HG-- extra : source : d5d6780fd51b9112a84c2c657b4a1aa4550eeb1d
This commit is contained in:
Родитель
61dcca4d6b
Коммит
720381f99c
|
@ -4178,8 +4178,7 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
void
|
||||
atomicRMW32(T srcAddr, Scalar::Type viewType, AtomicOp op, RegI32 rv, RegI32 rd, RegI32 temp)
|
||||
void atomicRMW32(T srcAddr, Scalar::Type viewType, AtomicOp op, RegI32 rv, RegI32 rd, RegI32 temp)
|
||||
{
|
||||
Synchronization sync = Synchronization::Full();
|
||||
switch (viewType) {
|
||||
|
@ -4207,15 +4206,14 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
|
||||
// On x86, V is Address. On other platforms, it is Register64.
|
||||
// T is BaseIndex or Address.
|
||||
template <typename T, typename V>
|
||||
void
|
||||
atomicRMW64(const T& srcAddr, AtomicOp op, V value, Register64 temp, Register64 rd) {
|
||||
template<typename T, typename V>
|
||||
void atomicRMW64(const T& srcAddr, AtomicOp op, V value, Register64 temp, Register64 rd)
|
||||
{
|
||||
masm.atomicFetchOp64(Synchronization::Full(), op, value, srcAddr, temp, rd);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void
|
||||
atomicCmpXchg32(T srcAddr, Scalar::Type viewType, RegI32 rexpect, RegI32 rnew, RegI32 rd)
|
||||
void atomicCmpXchg32(T srcAddr, Scalar::Type viewType, RegI32 rexpect, RegI32 rnew, RegI32 rd)
|
||||
{
|
||||
Synchronization sync = Synchronization::Full();
|
||||
switch (viewType) {
|
||||
|
@ -4243,8 +4241,7 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
void
|
||||
atomicXchg32(T srcAddr, Scalar::Type viewType, RegI32 rv, RegI32 rd)
|
||||
void atomicXchg32(T srcAddr, Scalar::Type viewType, RegI32 rv, RegI32 rd)
|
||||
{
|
||||
Synchronization sync = Synchronization::Full();
|
||||
switch (viewType) {
|
||||
|
@ -4519,8 +4516,7 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
|
||||
#ifdef JS_CODEGEN_X86
|
||||
template<typename T>
|
||||
void
|
||||
atomicCmpXchg64(T srcAddr, RegI32 ebx) {
|
||||
void atomicCmpXchg64(T srcAddr, RegI32 ebx) {
|
||||
MOZ_ASSERT(ebx == js::jit::ebx);
|
||||
bc->masm.move32(rnew.low, ebx);
|
||||
bc->masm.compareExchange64(Synchronization::Full(), srcAddr, rexpect,
|
||||
|
@ -4528,8 +4524,7 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
}
|
||||
#else
|
||||
template<typename T>
|
||||
void
|
||||
atomicCmpXchg64(T srcAddr) {
|
||||
void atomicCmpXchg64(T srcAddr) {
|
||||
bc->masm.compareExchange64(Synchronization::Full(), srcAddr, rexpect, rnew, getRd());
|
||||
}
|
||||
#endif
|
||||
|
@ -4565,15 +4560,13 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
|
||||
# ifdef JS_CODEGEN_X86
|
||||
template<typename T>
|
||||
void
|
||||
atomicLoad64(T srcAddr, RegI32 ebx) {
|
||||
void atomicLoad64(T srcAddr, RegI32 ebx) {
|
||||
MOZ_ASSERT(ebx == js::jit::ebx);
|
||||
bc->masm.atomicLoad64(Synchronization::Full(), srcAddr, bc->specific.ecx_ebx, getRd());
|
||||
}
|
||||
# else
|
||||
template<typename T>
|
||||
void
|
||||
atomicLoad64(T srcAddr) {
|
||||
void atomicLoad64(T srcAddr) {
|
||||
bc->masm.atomicLoad64(Synchronization::Full(), srcAddr, RegI64::Invalid(), getRd());
|
||||
}
|
||||
# endif
|
||||
|
@ -4649,8 +4642,7 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
#endif
|
||||
|
||||
template<typename T>
|
||||
void
|
||||
atomicRMW32(T srcAddr, Scalar::Type viewType, AtomicOp op) {
|
||||
void atomicRMW32(T srcAddr, Scalar::Type viewType, AtomicOp op) {
|
||||
bc->atomicRMW32(srcAddr, viewType, op, rv, getRd(), temp);
|
||||
}
|
||||
};
|
||||
|
@ -4722,15 +4714,13 @@ class BaseCompiler final : public BaseCompilerInterface
|
|||
|
||||
#ifdef JS_CODEGEN_X86
|
||||
template<typename T, typename V>
|
||||
void
|
||||
atomicRMW64(T srcAddr, AtomicOp op, const V& value, RegI32 ebx) {
|
||||
void atomicRMW64(T srcAddr, AtomicOp op, const V& value, RegI32 ebx) {
|
||||
MOZ_ASSERT(ebx == js::jit::ebx);
|
||||
bc->atomicRMW64(srcAddr, op, value, bc->specific.ecx_ebx, getRd());
|
||||
}
|
||||
#else
|
||||
template<typename T>
|
||||
void
|
||||
atomicRMW64(T srcAddr, AtomicOp op) {
|
||||
void atomicRMW64(T srcAddr, AtomicOp op) {
|
||||
bc->atomicRMW64(srcAddr, op, rv, temp, getRd());
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче