diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-03-03 14:41:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-07 16:55:12 +0100 |
commit | 245f5ce7bb194438fc643e5c928382f47556e2f2 (patch) | |
tree | 73d82c57dddf8e8e0c206cd50fe8af4542d3f299 /src/qml/compiler/qv4instr_moth_p.h | |
parent | 4c4bddb0254acbc53b80e804bbbc26cfdd4e87a1 (diff) |
Add a Line instruction to the interpreter
This unifies the way we handle line numbers in the
JIT and Interpreter.
Remove the now unused lineNumberMapping code and data.
Change-Id: I1d60b1fbb77e70b531fa73d93410683e84dd1e3c
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h index 4f8173fb80..12ef3bc0af 100644 --- a/src/qml/compiler/qv4instr_moth_p.h +++ b/src/qml/compiler/qv4instr_moth_p.h @@ -51,6 +51,7 @@ QT_BEGIN_NAMESPACE #define FOR_EACH_MOTH_INSTR(F) \ F(Ret, ret) \ + F(Line, line) \ F(Debug, debug) \ F(LoadRuntimeString, loadRuntimeString) \ F(LoadRegExp, loadRegExp) \ @@ -234,6 +235,10 @@ union Instr MOTH_INSTR_HEADER Param result; }; + struct instr_line { + MOTH_INSTR_HEADER + qint32 lineNumber; + }; struct instr_debug { MOTH_INSTR_HEADER qint32 lineNumber; @@ -711,6 +716,7 @@ union Instr instr_common common; instr_ret ret; + instr_line line; instr_debug debug; instr_loadRuntimeString loadRuntimeString; instr_loadRegExp loadRegExp; |