aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_runtime.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-12-11 10:03:40 +0100
committerLars Knoll <lars.knoll@digia.com>2012-12-11 23:16:32 +0100
commit5e39d56c0974faa28c5060a12064e1ad7f611ea0 (patch)
treea2f900ab936799f002e769e9a48d191af773d3d8 /qmljs_runtime.h
parentbcdddfda8ca81752b249540b0abaefb46eb5f766 (diff)
Remove IR::Function from the runtime.
This fixes potential leaks of IR::Functions, lowers the memory usage of the functions that the VM needs (because the IR fields are not present in the VM::Function), and makes both managed by the module respectively the ExecutionEngine. Change-Id: I6748ad98b062f994eae9dd14f1919aec5aa7c0b0 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qmljs_runtime.h')
-rw-r--r--qmljs_runtime.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/qmljs_runtime.h b/qmljs_runtime.h
index e8049d9192..1021d4e89d 100644
--- a/qmljs_runtime.h
+++ b/qmljs_runtime.h
@@ -60,11 +60,6 @@
#endif // TRACE1
namespace QQmlJS {
-
-namespace IR {
-struct Function;
-}
-
namespace VM {
enum TypeHint {
@@ -73,6 +68,7 @@ enum TypeHint {
STRING_HINT
};
+struct Function;
struct Object;
struct String;
struct PropertyDescriptor;
@@ -109,7 +105,7 @@ void __qmljs_builtin_pop_with(ExecutionContext *ctx);
void __qmljs_builtin_declare_var(ExecutionContext *ctx, bool deletable, String *name);
// constructors
-Value __qmljs_init_closure(IR::Function *clos, ExecutionContext *ctx);
+Value __qmljs_init_closure(VM::Function *clos, ExecutionContext *ctx);
Value __qmljs_init_native_function(String *name, Value (*code)(ExecutionContext *), ExecutionContext *ctx);
Bool __qmljs_is_function(Value value);