diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-27 15:53:36 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-28 06:46:21 +0000 |
commit | 188e115c4d975c6e30ff6d3885ec91aa3b8be24d (patch) | |
tree | 860fe87d77043c8e253a041b917346c5afc20d7d /src/qml/compiler/qv4instr_moth.cpp | |
parent | adbbf08ee205665300d6397d29b42a692bacffbd (diff) |
Fix byte code debug output for registers and args
Since the introduction of the instruction dump code, the members in
CallData has grown (newTarget, etc.).
Change-Id: Ief456eb8c6d9f41ffc06b0a7e244dd1feb80526d
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth.cpp')
-rw-r--r-- | src/qml/compiler/qv4instr_moth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp index d186c4e7e6..514ec9ac9b 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -156,7 +156,7 @@ QString dumpRegister(int reg, int nFormals) return QStringLiteral("(this)"); else if (reg == CallData::Argc) return QStringLiteral("(argc)"); - reg -= 4; + reg -= CallData::OffsetCount; if (reg <= nFormals) return QStringLiteral("a%1").arg(reg); reg -= nFormals; |