mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Increase the size of VM group opcodes to 256 (#3282)
Currently there is almost 115 group opcodes so increasing the number of bits which reprent a group opcode has become actual. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
parent
3b7d254e6a
commit
3a505bda6b
@ -44,12 +44,12 @@
|
||||
* If VM_OC_GET_ARGS_INDEX(opcode) == VM_OC_GET_BRANCH,
|
||||
* this flag signals that the branch is a backward branch.
|
||||
*/
|
||||
#define VM_OC_BACKWARD_BRANCH 0x4000
|
||||
#define VM_OC_BACKWARD_BRANCH (1 << 15)
|
||||
|
||||
/**
|
||||
* Position of "get arguments" opcode.
|
||||
*/
|
||||
#define VM_OC_GET_ARGS_SHIFT 7
|
||||
#define VM_OC_GET_ARGS_SHIFT 8
|
||||
|
||||
/**
|
||||
* Mask of "get arguments" opcode.
|
||||
@ -91,7 +91,7 @@ typedef enum
|
||||
/**
|
||||
* Mask of "group" opcode.
|
||||
*/
|
||||
#define VM_OC_GROUP_MASK 0x7f
|
||||
#define VM_OC_GROUP_MASK 0xff
|
||||
|
||||
/**
|
||||
* Extract the "group" opcode.
|
||||
@ -319,7 +319,7 @@ typedef enum
|
||||
/**
|
||||
* Bit index shift for non-static property initializers.
|
||||
*/
|
||||
#define VM_OC_NON_STATIC_SHIFT 14
|
||||
#define VM_OC_NON_STATIC_SHIFT 15
|
||||
|
||||
/**
|
||||
* This flag is set for static property initializers.
|
||||
@ -329,7 +329,7 @@ typedef enum
|
||||
/**
|
||||
* Position of "put result" opcode.
|
||||
*/
|
||||
#define VM_OC_PUT_RESULT_SHIFT 10
|
||||
#define VM_OC_PUT_RESULT_SHIFT 11
|
||||
|
||||
/**
|
||||
* Mask of "put result" opcode.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user