summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/JSFunction.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 09:55:33 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 09:55:33 +0100
commitcd44dc59cdfc39534aef4d417e9f3c412e3be139 (patch)
tree8d89889ba95ed6ec9322e733846cc9cce9d7dff1 /Source/JavaScriptCore/runtime/JSFunction.h
parentd11f84f5b5cdc0d92a08af01b13472fdd5f9acb9 (diff)
downloadqtwebkit-cd44dc59cdfc39534aef4d417e9f3c412e3be139.tar.gz
Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560)
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSFunction.h')
-rw-r--r--Source/JavaScriptCore/runtime/JSFunction.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/JavaScriptCore/runtime/JSFunction.h b/Source/JavaScriptCore/runtime/JSFunction.h
index 5118f8b10..a12b079d7 100644
--- a/Source/JavaScriptCore/runtime/JSFunction.h
+++ b/Source/JavaScriptCore/runtime/JSFunction.h
@@ -40,8 +40,10 @@ namespace JSC {
class JITCompiler;
}
- EncodedJSValue JSC_HOST_CALL callHostFunctionAsConstructor(ExecState*);
+ JS_EXPORT_PRIVATE EncodedJSValue JSC_HOST_CALL callHostFunctionAsConstructor(ExecState*);
+ JS_EXPORT_PRIVATE UString getCalculatedDisplayName(CallFrame*, JSObject*);
+
class JSFunction : public JSNonFinalObject {
friend class JIT;
friend class DFG::SpeculativeJIT;
@@ -51,7 +53,7 @@ namespace JSC {
public:
typedef JSNonFinalObject Base;
- static JSFunction* create(ExecState*, JSGlobalObject*, int length, const Identifier& name, NativeFunction nativeFunction, NativeFunction nativeConstructor = callHostFunctionAsConstructor);
+ JS_EXPORT_PRIVATE static JSFunction* create(ExecState*, JSGlobalObject*, int length, const Identifier& name, NativeFunction nativeFunction, NativeFunction nativeConstructor = callHostFunctionAsConstructor);
static JSFunction* create(ExecState*, JSGlobalObject*, int length, const Identifier& name, NativeExecutable* nativeExecutable);
static JSFunction* create(ExecState* exec, FunctionExecutable* executable, ScopeChainNode* scopeChain)
@@ -64,8 +66,8 @@ namespace JSC {
static void destroy(JSCell*);
- const UString& name(ExecState*);
- const UString displayName(ExecState*);
+ JS_EXPORT_PRIVATE const UString& name(ExecState*);
+ JS_EXPORT_PRIVATE const UString displayName(ExecState*);
const UString calculatedDisplayName(ExecState*);
ScopeChainNode* scope()
@@ -94,7 +96,7 @@ namespace JSC {
inline bool isHostFunction() const;
FunctionExecutable* jsExecutable() const;
- const SourceCode* sourceCode() const;
+ JS_EXPORT_PRIVATE const SourceCode* sourceCode() const;
static JS_EXPORTDATA const ClassInfo s_info;
@@ -123,7 +125,7 @@ namespace JSC {
protected:
const static unsigned StructureFlags = OverridesGetOwnPropertySlot | ImplementsHasInstance | OverridesVisitChildren | OverridesGetPropertyNames | JSObject::StructureFlags;
- JSFunction(ExecState*, JSGlobalObject*, Structure*);
+ JS_EXPORT_PRIVATE JSFunction(ExecState*, JSGlobalObject*, Structure*);
JSFunction(ExecState*, FunctionExecutable*, ScopeChainNode*);
void finishCreation(ExecState*, NativeExecutable*, int length, const Identifier& name);
@@ -140,7 +142,7 @@ namespace JSC {
static void visitChildren(JSCell*, SlotVisitor&);
private:
- bool isHostFunctionNonInline() const;
+ JS_EXPORT_PRIVATE bool isHostFunctionNonInline() const;
static JSValue argumentsGetter(ExecState*, JSValue, const Identifier&);
static JSValue callerGetter(ExecState*, JSValue, const Identifier&);