Bug 768793 - Remove DOMJSClass::mGetWrapperCacheVTableOffset; r=khuey

This commit is contained in:
Ms2ger 2012-09-06 09:14:49 +02:00
Родитель 36d93492da
Коммит 07775477a5
4 изменённых файлов: 4 добавлений и 14 удалений

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

@ -129,8 +129,7 @@ DOMJSClass Class = {
%s, /* trace */
JSCLASS_NO_INTERNAL_MEMBERS
},
%s,
-1
%s
};
""" % (self.descriptor.interface.identifier.name,
ADDPROPERTY_HOOK_NAME if self.descriptor.concrete and not self.descriptor.workers and self.descriptor.wrapperCache else 'JS_PropertyStub',

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

@ -73,12 +73,6 @@ struct DOMJSClass
DOMClass mClass;
// We cache the VTable index of GetWrapperCache for objects that support it.
//
// -1 indicates that GetWrapperCache is not implemented on the underlying object.
// XXXkhuey this is unused and needs to die.
const int16_t mGetWrapperCacheVTableOffset;
static DOMJSClass* FromJSClass(JSClass* base) {
MOZ_ASSERT(base->flags & JSCLASS_IS_DOMJSCLASS);
return reinterpret_cast<DOMJSClass*>(base);

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

@ -313,8 +313,7 @@ DOMJSClass Worker::sClass = {
prototypes::id::_ID_Count },
false,
&sNativePropertyHooks
},
-1
}
};
JSPropertySpec Worker::sProperties[] = {
@ -439,8 +438,7 @@ DOMJSClass ChromeWorker::sClass = {
prototypes::id::_ID_Count },
false,
&sNativePropertyHooks
},
-1
}
};
WorkerPrivate*

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

@ -865,8 +865,7 @@ DOMJSClass DedicatedWorkerGlobalScope::sClass = {
prototypes::id::_ID_Count },
false,
&sNativePropertyHooks
},
-1
}
};
JSPropertySpec DedicatedWorkerGlobalScope::sProperties[] = {