summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-08 11:38:17 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-08 16:17:36 (GMT)
commitccda28f5fa5b38a8e7096742202d64bec4fef54c (patch)
tree9946f8bc5d2dc439f05f2ac9e883624a5e14b501 /src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h
parentd47ea38c927d488b83708564f2e79b09cd631b9f (diff)
downloadQt-ccda28f5fa5b38a8e7096742202d64bec4fef54c.zip
Qt-ccda28f5fa5b38a8e7096742202d64bec4fef54c.tar.gz
Qt-ccda28f5fa5b38a8e7096742202d64bec4fef54c.tar.bz2
make JSC::CallFrame::callee() an InternalFunction
This makes it possible to obtain the callee for native (host) functions as well.
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h b/src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h
index 31f0c8b..e0dbc34 100644
--- a/src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h
+++ b/src/3rdparty/webkit/JavaScriptCore/interpreter/Register.h
@@ -40,7 +40,7 @@ namespace JSC {
class CodeBlock;
class ExecState;
class JSActivation;
- class JSFunction;
+ class InternalFunction;
class JSPropertyNameIterator;
class ScopeChainNode;
@@ -62,7 +62,7 @@ namespace JSC {
int32_t i() const;
void* v() const;
- private:
+ public:
friend class ExecState;
friend class Interpreter;
@@ -73,7 +73,7 @@ namespace JSC {
Register(JSActivation*);
Register(CallFrame*);
Register(CodeBlock*);
- Register(JSFunction*);
+ Register(InternalFunction*);
Register(JSPropertyNameIterator*);
Register(ScopeChainNode*);
Register(Instruction*);
@@ -82,7 +82,7 @@ namespace JSC {
Arguments* arguments() const;
CallFrame* callFrame() const;
CodeBlock* codeBlock() const;
- JSFunction* function() const;
+ InternalFunction* function() const;
JSPropertyNameIterator* propertyNameIterator() const;
ScopeChainNode* scopeChain() const;
Instruction* vPC() const;
@@ -96,7 +96,7 @@ namespace JSC {
Arguments* arguments;
CallFrame* callFrame;
CodeBlock* codeBlock;
- JSFunction* function;
+ InternalFunction* function;
JSPropertyNameIterator* propertyNameIterator;
ScopeChainNode* scopeChain;
Instruction* vPC;
@@ -152,7 +152,7 @@ namespace JSC {
u.codeBlock = codeBlock;
}
- ALWAYS_INLINE Register::Register(JSFunction* function)
+ ALWAYS_INLINE Register::Register(InternalFunction* function)
{
u.function = function;
}
@@ -211,7 +211,7 @@ namespace JSC {
return u.codeBlock;
}
- ALWAYS_INLINE JSFunction* Register::function() const
+ ALWAYS_INLINE InternalFunction* Register::function() const
{
return u.function;
}