diff options
| author | Lars Knoll <lars.knoll@qt.io> | 2018-05-11 21:10:11 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-11 20:52:40 +0000 |
| commit | 2d6b08bd17377aa6bcb663029a196a8d19cac6ac (patch) | |
| tree | 4bce8e27455c38b919a5a1706c6bb5b8b7f8813a /src/qml/compiler/qv4instr_moth.cpp | |
| parent | bde97ab6a72acafaa29d2da0f7a31ae23918a6b0 (diff) | |
Give for loops a per-iteration context as well
Regular for loops also have a per iteration context for lexically
declared variables as well.
Change-Id: I35cb58bfb198c7dc32d70f41ea0ced7ddefcc37e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth.cpp')
| -rw-r--r-- | src/qml/compiler/qv4instr_moth.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp index d4abc59a8b..7d9dc25ced 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -415,6 +415,9 @@ void dumpBytecode(const char *code, int len, int nLocals, int nFormals, int /*st d << dumpRegister(reg, nFormals) << ", " << index; MOTH_END_INSTR(PushBlockContext) + MOTH_BEGIN_INSTR(CloneBlockContext) + MOTH_END_INSTR(CloneBlockContext) + MOTH_BEGIN_INSTR(PushScriptContext) d << index; MOTH_END_INSTR(PushScriptContext) |
