diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-08-21 10:32:50 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 17:27:36 +0200 |
commit | ac1d0075a8a379de1aa31a588c7b86ce0813e48c (patch) | |
tree | fb78932dd6574736d8e6478522ebf2a669bdc6bc /src/qml/jsruntime/qv4engine.cpp | |
parent | e360eaa02fb1a9baae89b473e2b5e8cc9d1bc609 (diff) |
Move call context creation into the ExecutionContext class
Change-Id: Ie66a5892b0e5ab74bead1fcb59ffad5a867e0509
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4engine.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index ca0ea916a3..0dc558d565 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -336,27 +336,6 @@ CallContext *ExecutionEngine::newQmlContext(FunctionObject *f, Object *qml) return c; } -CallContext *ExecutionEngine::newCallContext(void *stackSpace, FunctionObject *f, const Value &thisObject, Value *args, int argc) -{ - CallContext *c; - uint memory = requiredMemoryForExecutionContect(f, argc); - if (f->needsActivation || memory > stackContextSize) { - c = static_cast<CallContext *>(memoryManager->allocContext(memory)); - } else { - c = (CallContext *)stackSpace; -#ifndef QT_NO_DEBUG - c->next = (CallContext *)0x1; -#endif - } - - ExecutionContext *p = current; - current = c; - c->initCallContext(p, f, args, argc, thisObject); - - return c; -} - - ExecutionContext *ExecutionEngine::pushGlobalContext() { GlobalContext *g = static_cast<GlobalContext *>(memoryManager->allocContext(sizeof(GlobalContext))); |