aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-10-18 15:42:17 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-29 10:38:45 +0100
commit5229a8b259286c9ea61036fd6b4bd0039104a206 (patch)
tree277d62ecedeaf703ce778d86f8cbcb94b9a57fe2 /src/qml/compiler/qv4instr_moth_p.h
parent570686d42176af193b15abfe4b7bc17d831f4cf6 (diff)
Rework exception handling
Start the work to remove c++ exceptions from our JS exception handling. Rather rely on engine->hasException. Check the flag after we return from any runtime call in the JIT. Implement new try/catch handling code in qv4codegen and for the JIT that doesn't rely on exceptions. As an added bonus, we can remove the Try statement in the IR. Change-Id: Ic95addd6ae03371c43c47e04cac26afdce23a061 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r--src/qml/compiler/qv4instr_moth_p.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h
index 3c28633491..b9163b38d3 100644
--- a/src/qml/compiler/qv4instr_moth_p.h
+++ b/src/qml/compiler/qv4instr_moth_p.h
@@ -64,13 +64,11 @@ QT_BEGIN_NAMESPACE
F(LoadProperty, loadProperty) \
F(StoreProperty, storeProperty) \
F(Push, push) \
- F(EnterTry, enterTry) \
F(CallValue, callValue) \
F(CallProperty, callProperty) \
F(CallElement, callElement) \
F(CallActivationProperty, callActivationProperty) \
F(CallBuiltinThrow, callBuiltinThrow) \
- F(CallBuiltinFinishTry, callBuiltinFinishTry) \
F(CallBuiltinPushScope, callBuiltinPushScope) \
F(CallBuiltinPopScope, callBuiltinPopScope) \
F(CallBuiltinForeachIteratorObject, callBuiltinForeachIteratorObject) \
@@ -274,13 +272,6 @@ union Instr
MOTH_INSTR_HEADER
quint32 value;
};
- struct instr_enterTry {
- MOTH_INSTR_HEADER
- ptrdiff_t tryOffset;
- ptrdiff_t catchOffset;
- int exceptionVarName;
- Param exceptionVar;
- };
struct instr_callValue {
MOTH_INSTR_HEADER
quint32 argc;
@@ -315,9 +306,6 @@ union Instr
MOTH_INSTR_HEADER
Param arg;
};
- struct instr_callBuiltinFinishTry {
- MOTH_INSTR_HEADER
- };
struct instr_callBuiltinPushScope {
MOTH_INSTR_HEADER
Param arg;
@@ -498,13 +486,11 @@ union Instr
instr_loadProperty loadProperty;
instr_storeProperty storeProperty;
instr_push push;
- instr_enterTry enterTry;
instr_callValue callValue;
instr_callProperty callProperty;
instr_callElement callElement;
instr_callActivationProperty callActivationProperty;
instr_callBuiltinThrow callBuiltinThrow;
- instr_callBuiltinFinishTry callBuiltinFinishTry;
instr_callBuiltinPushScope callBuiltinPushScope;
instr_callBuiltinPopScope callBuiltinPopScope;
instr_callBuiltinForeachIteratorObject callBuiltinForeachIteratorObject;