aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4function_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r--src/qml/jsruntime/qv4function_p.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h
index 35c98897a0..5d284f1b2b 100644
--- a/src/qml/jsruntime/qv4function_p.h
+++ b/src/qml/jsruntime/qv4function_p.h
@@ -86,23 +86,6 @@ struct Function {
const CompiledData::Function *compiledFunction;
CompiledData::CompilationUnit *compilationUnit;
inline ReturnedValue code(ExecutionContext *ctx, const uchar *data) {
-
- struct StackSaver {
- ExecutionEngine *engine;
- SafeValue *stack;
-
- StackSaver(ExecutionEngine *engine)
- : engine(engine)
- , stack(engine->jsStackTop)
- {}
-
- ~StackSaver()
- {
- engine->jsStackTop = stack;
- }
- };
-
- StackSaver(ctx->engine);
return codePtr(ctx, data);
}
@@ -126,9 +109,10 @@ struct Function {
inline bool needsActivation() const
{ return compiledFunction->nInnerFunctions > 0 || (compiledFunction->flags & (CompiledData::Function::HasDirectEval | CompiledData::Function::UsesArgumentsObject)); }
- void mark();
+ void mark(ExecutionEngine *e);
int lineNumberForProgramCounter(qptrdiff offset) const;
+ QList<qptrdiff> programCountersForAllLines() const;
};
}