зеркало из https://github.com/mozilla/gecko-dev.git
Bug 856108 - Port static analyses to clang, part 2g: use MOZ_STACK_CLASS in xpconnect. r=bholley
This commit is contained in:
Родитель
c8f20f3eb1
Коммит
8b560d8a3f
|
@ -1835,7 +1835,7 @@ nsXPCComponents_Exception::Construct(nsIXPConnectWrappedNative *wrapper, JSConte
|
|||
return CallOrConstruct(wrapper, cx, obj, argc, argv, vp, _retval);
|
||||
}
|
||||
|
||||
struct NS_STACK_CLASS ExceptionArgParser
|
||||
struct MOZ_STACK_CLASS ExceptionArgParser
|
||||
{
|
||||
ExceptionArgParser(JSContext *context,
|
||||
nsXPConnect *xpconnect)
|
||||
|
|
|
@ -1398,7 +1398,7 @@ XPCWrappedNative::SystemIsBeingShutDown()
|
|||
/***************************************************************************/
|
||||
|
||||
// Dynamically ensure that two objects don't end up with the same private.
|
||||
class AutoClonePrivateGuard NS_STACK_CLASS {
|
||||
class MOZ_STACK_CLASS AutoClonePrivateGuard {
|
||||
public:
|
||||
AutoClonePrivateGuard(JSObject *aOld, JSObject *aNew)
|
||||
: mOldReflector(aOld), mNewReflector(aNew)
|
||||
|
@ -2200,7 +2200,7 @@ public:
|
|||
};
|
||||
|
||||
// static
|
||||
NS_SUPPRESS_STACK_CHECK JSBool
|
||||
JSBool
|
||||
XPCWrappedNative::CallMethod(XPCCallContext& ccx,
|
||||
CallMode mode /*= CALL_METHOD */)
|
||||
{
|
||||
|
|
|
@ -1206,7 +1206,7 @@ XPC_WN_JSOp_Enumerate(JSContext *cx, JSHandleObject obj, JSIterateOp enum_op,
|
|||
|
||||
namespace {
|
||||
|
||||
NS_STACK_CLASS class AutoPopJSContext
|
||||
class MOZ_STACK_CLASS AutoPopJSContext
|
||||
{
|
||||
public:
|
||||
AutoPopJSContext(XPCJSContextStack *stack)
|
||||
|
|
|
@ -359,7 +359,7 @@ static inline void xpc_NotifyAll(XPCLock* lock)
|
|||
// Note that xpconnect only makes *one* monitor and *mostly* holds it locked
|
||||
// only through very small critical sections.
|
||||
|
||||
class NS_STACK_CLASS XPCAutoLock {
|
||||
class MOZ_STACK_CLASS XPCAutoLock {
|
||||
public:
|
||||
|
||||
static XPCLock* NewLock(const char* name)
|
||||
|
@ -404,7 +404,7 @@ private:
|
|||
|
||||
/************************************************/
|
||||
|
||||
class NS_STACK_CLASS XPCAutoUnlock {
|
||||
class MOZ_STACK_CLASS XPCAutoUnlock {
|
||||
public:
|
||||
XPCAutoUnlock(XPCLock* lock MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
|
||||
: mLock(lock)
|
||||
|
@ -2293,7 +2293,7 @@ private:
|
|||
// it abstracts out the scriptable interface pointer and the flags. After
|
||||
// creation these are factored differently using XPCNativeScriptableInfo.
|
||||
|
||||
class NS_STACK_CLASS XPCNativeScriptableCreateInfo
|
||||
class MOZ_STACK_CLASS XPCNativeScriptableCreateInfo
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -3792,7 +3792,7 @@ private:
|
|||
* Handles pre/post script processing and the setting/resetting the error
|
||||
* reporter
|
||||
*/
|
||||
class NS_STACK_CLASS AutoScriptEvaluate
|
||||
class MOZ_STACK_CLASS AutoScriptEvaluate
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
@ -3832,7 +3832,7 @@ private:
|
|||
};
|
||||
|
||||
/***************************************************************************/
|
||||
class NS_STACK_CLASS AutoResolveName
|
||||
class MOZ_STACK_CLASS AutoResolveName
|
||||
{
|
||||
public:
|
||||
AutoResolveName(XPCCallContext& ccx, jsid name
|
||||
|
|
Загрузка…
Ссылка в новой задаче