X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Source%2FJavaScriptCore%2Fruntime%2FJSGlobalThis.h;h=e33ca7a2f5dc0640048d9f4c108a01024b2691bb;hb=b96e33af77ac7d81a666d5aa202235b793aeeb21;hp=9b11e254854b5476c00b7436d584f6600cfa5352;hpb=2632619e54bc9f41ccea7c574710fe213e49212d;p=framework%2Fweb%2Fwebkit-efl.git diff --git a/Source/JavaScriptCore/runtime/JSGlobalThis.h b/Source/JavaScriptCore/runtime/JSGlobalThis.h index 9b11e25..e33ca7a 100755 --- a/Source/JavaScriptCore/runtime/JSGlobalThis.h +++ b/Source/JavaScriptCore/runtime/JSGlobalThis.h @@ -41,6 +41,15 @@ public: return globalThis; } + static Structure* createStructure(JSGlobalData& globalData, JSValue prototype) + { + return Structure::create(globalData, 0, prototype, TypeInfo(GlobalThisType, StructureFlags), &s_info); + } + + static JS_EXPORTDATA const JSC::ClassInfo s_info; + + JSGlobalObject* unwrappedObject(); + protected: JSGlobalThis(JSGlobalData& globalData, Structure* structure) : JSNonFinalObject(globalData, structure) @@ -51,8 +60,14 @@ protected: { Base::finishCreation(globalData); } + + static const unsigned StructureFlags = OverridesVisitChildren | Base::StructureFlags; + + static void visitChildren(JSCell*, SlotVisitor&); + + WriteBarrier m_unwrappedObject; }; -} +} // namespace JSC -#endif +#endif // JSGlobalThis_h