diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-14 12:36:16 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-14 19:32:34 +0000 |
commit | d8eade23bc4fdd7040204f4374ef26975b94ea0a (patch) | |
tree | 19542aa2a8ddf285a80f3fe528913cd630a7f601 /src/qml/compiler/qv4instr_moth.cpp | |
parent | 16288498cf0e1eb389ac3acdce86eb74cc69e67a (diff) |
Refactor InteratorNext instruction
The instruction now writes the value into a stack slot,
and returns the done state in the accumulator. This should
make it easier to implement the IteratorClose functionality
required by the spec.
Change-Id: I8cc497c54b0d044bd3c68a5a1b774eea8b2740ef
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 | 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 8c5dfefdf1..7d8a1774f1 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -434,7 +434,7 @@ void dumpBytecode(const char *code, int len, int nLocals, int nFormals, int /*st MOTH_END_INSTR(GetIterator) MOTH_BEGIN_INSTR(IteratorNext) - d << returnUndefinedWhenDone; + d << value; MOTH_END_INSTR(IteratorNext) MOTH_BEGIN_INSTR(DestructureRestElement) |