mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
1c625b67e4
xpc_NewSystemInheritingJSObject is totally unnecessary now that the system bit has been removed (\o/). Furthermore, the mJSPrototypeObject optimization is really dumb. it complicates tracing significantly, and we don't actually use it in any critical places: XPCWrappedNative and slim wrapper creation use a different prototype, so this is used only for the creation of tearoff reflectors (seldom/ never used), XPCWrappedNativeProto objects, and the nohelper prototype on the scope (once per scope). We could actually just pass NULL to JS_NewObject and let it deal. However, this would actually trigger a dynamic lookup for the prototype object of the associated JSClass, which isn't what we want. So we just explicitly pass in Object.prototype. |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
jsd | ||
public | ||
src | ||
xpconnect |