diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-10 00:17:33 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-10 00:17:33 (GMT) |
commit | e93a22d8cb01a419fe9000bac166ed76f7fef3a5 (patch) | |
tree | 864953bcb6c4b06665b5497bd8073e7b866ba371 /src/script/api/qscriptengine.cpp | |
parent | ae1c70f4cf4f217d3cf0ad2f598cafc122a562ae (diff) | |
parent | fc5fd47fc7e7d87d17386e23690af4fec80dae05 (diff) | |
download | Qt-e93a22d8cb01a419fe9000bac166ed76f7fef3a5.zip Qt-e93a22d8cb01a419fe9000bac166ed76f7fef3a5.tar.gz Qt-e93a22d8cb01a419fe9000bac166ed76f7fef3a5.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r-- | src/script/api/qscriptengine.cpp | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index de759c6..216f325 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -1137,7 +1137,7 @@ void QScriptEnginePrivate::mark(JSC::MarkStack& markStack) QScriptContext *context = q->currentContext(); while (context) { - JSC::ScopeChainNode *node = ((JSC::ExecState *)context)->scopeChain(); + JSC::ScopeChainNode *node = frameForContext(context)->scopeChain(); JSC::ScopeChainIterator it(node); for (it = node->begin(); it != node->end(); ++it) { JSC::JSObject *object = *it; @@ -2288,35 +2288,6 @@ QScriptContext *QScriptEngine::pushContext() return d->contextForFrame(newFrame); } -/*! - Enters a new execution context and returns the associated - QScriptContext object. - - Once you are done with the context, you should call popContext() to - restore the old context. - - By default, the `this' object of the new context is the Global Object. - The context's \l{QScriptContext::callee()}{callee}() will be invalid. - - Unlike pushContext(), the default scope chain is reset to include - only the global object and the QScriptContext's activation object. - - \sa popContext() -*/ -QScriptContext *QScriptEngine::pushCleanContext() -{ - Q_D(QScriptEngine); - - JSC::CallFrame* newFrame = d->pushContext(d->currentFrame, d->currentFrame->globalData().dynamicGlobalObject, - JSC::ArgList(), /*callee = */0, false, true); - - if (agent()) - agent()->contextPush(); - - return d->contextForFrame(newFrame); -} - - /*! \internal push a context for a native function. JSC native function doesn't have different stackframe or context. so we need to create one. |