diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-24 10:41:36 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-28 11:49:05 +0000 |
commit | 69f3deff73759a006bafa7d5595cde01d0738dde (patch) | |
tree | 7cc65ad007f1d11a3e0f6281814c45a5a093f133 /src/qml/compiler/qv4instr_moth_p.h | |
parent | 7d6ebbf355fb3e8a0729d0805fe6039eebe5dfdf (diff) |
Change offsets to be integer based
This is big enough for generated bytecode, and gives more uniform
sizing in our instructions (everything's an int), that will simplify
moving over to a compressed instruction stream.
Change-Id: Ieb13c5db84348f11c3297c08dca640bb9ec5f224
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r-- | src/qml/compiler/qv4instr_moth_p.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h index 588ee7c110..9ca69c3eed 100644 --- a/src/qml/compiler/qv4instr_moth_p.h +++ b/src/qml/compiler/qv4instr_moth_p.h @@ -446,7 +446,7 @@ union Instr }; struct instr_setExceptionHandler { MOTH_INSTR_HEADER - qptrdiff offset; + int offset; }; struct instr_throwException { MOTH_INSTR_HEADER @@ -533,83 +533,83 @@ union Instr }; struct instr_jump { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; }; struct instr_jumpEq { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; }; struct instr_jumpNe { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpEqNull { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpNeNull { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpEqInt { MOTH_INSTR_HEADER int lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpNeInt { MOTH_INSTR_HEADER int lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpEq { MOTH_INSTR_HEADER StackSlot lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpNe { MOTH_INSTR_HEADER StackSlot lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpGt { MOTH_INSTR_HEADER StackSlot lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpGe { MOTH_INSTR_HEADER StackSlot lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpLt { MOTH_INSTR_HEADER StackSlot lhs; - ptrdiff_t offset; + int offset; }; struct instr_cmpJmpLe { MOTH_INSTR_HEADER StackSlot lhs; - ptrdiff_t offset; + int offset; }; struct instr_jumpStrictEqual { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; StackSlot lhs; }; struct instr_jumpStrictNotEqual { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; StackSlot lhs; }; struct instr_jumpStrictEqualStackSlotInt { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; StackSlot lhs; int rhs; }; struct instr_jumpStrictNotEqualStackSlotInt { MOTH_INSTR_HEADER - ptrdiff_t offset; + int offset; StackSlot lhs; int rhs; }; |