Bug 1056410 - Mark more classes final, r=terrence

Bug 1047696 was blocked by the hazard here, so it ended up not marking problematic classes final. Mark them final.

--HG--
extra : rebase_source : f1a0bf6b3179f1217b92ecd32d5f44041d7399d9
This commit is contained in:
Steve Fink 2015-03-30 14:00:45 -07:00
Родитель 255b85b7d9
Коммит 383b1db859
2 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -143,6 +143,9 @@ var ignoreFunctions = {
// generic to ignore by itself.
"void* std::_Locale_impl::~_Locale_impl(int32)" : true,
// Bug 1056410 - devirtualization prevents the standard nsISupports::Release heuristic from working
"uint32 nsXPConnect::Release()" : true,
// FIXME!
"NS_LogInit": true,
"NS_LogTerm": true,

Просмотреть файл

@ -243,10 +243,10 @@ static inline bool IS_WN_REFLECTOR(JSObject* obj)
// returned as function call result values they are not addref'd. Exceptions
// to this rule are noted explicitly.
class nsXPConnect : public nsIXPConnect,
public nsIThreadObserver,
public nsSupportsWeakReference,
public nsIJSRuntimeService
class nsXPConnect final : public nsIXPConnect,
public nsIThreadObserver,
public nsSupportsWeakReference,
public nsIJSRuntimeService
{
public:
// all the interface method declarations...
@ -2010,7 +2010,7 @@ private:
// XPCWrappedNative the wrapper around one instance of a native xpcom object
// to be used from JavaScript.
class XPCWrappedNative : public nsIXPConnectWrappedNative
class XPCWrappedNative final : public nsIXPConnectWrappedNative
{
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
@ -2316,7 +2316,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCWrappedJSClass,
// nsXPCWrappedJSClass represents the sharable factored out common code and
// data for nsXPCWrappedJS instances for the same interface type.
class nsXPCWrappedJSClass : public nsIXPCWrappedJSClass
class nsXPCWrappedJSClass final : public nsIXPCWrappedJSClass
{
// all the interface method declarations...
NS_DECL_ISUPPORTS