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:
Robert Fancsik
2019-11-06 14:49:57 +01:00
committed by Dániel Bátyai
parent 3b7d254e6a
commit 3a505bda6b
+5 -5
View File
@@ -44,12 +44,12 @@
* If VM_OC_GET_ARGS_INDEX(opcode) == VM_OC_GET_BRANCH, * If VM_OC_GET_ARGS_INDEX(opcode) == VM_OC_GET_BRANCH,
* this flag signals that the branch is a backward 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. * Position of "get arguments" opcode.
*/ */
#define VM_OC_GET_ARGS_SHIFT 7 #define VM_OC_GET_ARGS_SHIFT 8
/** /**
* Mask of "get arguments" opcode. * Mask of "get arguments" opcode.
@@ -91,7 +91,7 @@ typedef enum
/** /**
* Mask of "group" opcode. * Mask of "group" opcode.
*/ */
#define VM_OC_GROUP_MASK 0x7f #define VM_OC_GROUP_MASK 0xff
/** /**
* Extract the "group" opcode. * Extract the "group" opcode.
@@ -319,7 +319,7 @@ typedef enum
/** /**
* Bit index shift for non-static property initializers. * 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. * This flag is set for static property initializers.
@@ -329,7 +329,7 @@ typedef enum
/** /**
* Position of "put result" opcode. * Position of "put result" opcode.
*/ */
#define VM_OC_PUT_RESULT_SHIFT 10 #define VM_OC_PUT_RESULT_SHIFT 11
/** /**
* Mask of "put result" opcode. * Mask of "put result" opcode.