From 1b914638db989aaa98631a1c1e02c7b2d44805d8 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 11 May 2012 09:43:24 +0200 Subject: Imported WebKit commit 9a52e27980f47e8b0d8f8b7cc0fd7b5741bceb92 (http://svn.webkit.org/repository/webkit/trunk@116736) New snapshot to include QDeclarative* -> QQml* build fixes --- Source/JavaScriptCore/runtime/JSFunction.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Source/JavaScriptCore/runtime/JSFunction.h') diff --git a/Source/JavaScriptCore/runtime/JSFunction.h b/Source/JavaScriptCore/runtime/JSFunction.h index 5553115bf..9de66d721 100644 --- a/Source/JavaScriptCore/runtime/JSFunction.h +++ b/Source/JavaScriptCore/runtime/JSFunction.h @@ -121,6 +121,18 @@ namespace JSC { return OBJECT_OFFSETOF(JSFunction, m_executable); } + Structure* cachedInheritorID(ExecState* exec) + { + if (UNLIKELY(!m_cachedInheritorID)) + return cacheInheritorID(exec); + return m_cachedInheritorID.get(); + } + + static size_t offsetOfCachedInheritorID() + { + return OBJECT_OFFSETOF(JSFunction, m_cachedInheritorID); + } + protected: const static unsigned StructureFlags = OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesVisitChildren | OverridesGetPropertyNames | JSObject::StructureFlags; @@ -130,6 +142,8 @@ namespace JSC { void finishCreation(ExecState*, NativeExecutable*, int length, const Identifier& name); void finishCreation(ExecState*, FunctionExecutable*, ScopeChainNode*); + Structure* cacheInheritorID(ExecState*); + static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&); static void getOwnPropertyNames(JSObject*, ExecState*, PropertyNameArray&, EnumerationMode = ExcludeDontEnumProperties); @@ -152,6 +166,7 @@ namespace JSC { WriteBarrier m_executable; WriteBarrier m_scopeChain; + WriteBarrier m_cachedInheritorID; }; inline bool JSValue::isFunction() const -- cgit v1.2.1