Properly decode literal index before CBC_MOV_IDENT (#3056)

This patch fixes #3055.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-09-07 12:23:49 +02:00
committed by Dániel Bátyai
parent 5d51fe8f27
commit 2933947534
4 changed files with 68 additions and 14 deletions
+20
View File
@@ -604,6 +604,26 @@
#define CBC_HIGHEST_BIT_MASK 0x80
#define CBC_LOWER_SEVEN_BIT_MASK 0x7f
/**
* Literal encoding limit when full literal encoding mode is enabled
*/
#define CBC_FULL_LITERAL_ENCODING_LIMIT 128
/**
* Literal encoding delta when full literal encoding mode is enabled
*/
#define CBC_FULL_LITERAL_ENCODING_DELTA 0x8000
/**
* Literal encoding limit when full literal encoding mode is disabled
*/
#define CBC_SMALL_LITERAL_ENCODING_LIMIT 255
/**
* Literal encoding delta when full literal encoding mode is disabled
*/
#define CBC_SMALL_LITERAL_ENCODING_DELTA 0xfe01
/**
* Literal indicies belong to one of the following groups:
*