@@ -678,8 +678,8 @@ void FASTCALL decodeCallPattern(int pattern,
678678#define NORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)>>2)
679679#define DENORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)<<2)
680680#define CODE_OFFSETS_NEED_NORMALIZATION 1
681- #define NORMALIZE_CODE_OFFSET (x ) (x ) // Instructions are 2/4 bytes long in Thumb/ARM states,
682- #define DENORMALIZE_CODE_OFFSET (x ) (x) // but the safe-point offsets are encoded with a -1 adjustment.
681+ #define NORMALIZE_CODE_OFFSET (x ) ((x)>>1 ) // Instructions are 2/4 bytes long in Thumb/ARM states,
682+ #define DENORMALIZE_CODE_OFFSET (x ) ((x)<<1)
683683#define NORMALIZE_REGISTER (x ) (x)
684684#define DENORMALIZE_REGISTER (x ) (x)
685685#define NORMALIZE_NUM_SAFE_POINTS (x ) (x)
@@ -734,9 +734,9 @@ void FASTCALL decodeCallPattern(int pattern,
734734#define DENORMALIZE_STACK_BASE_REGISTER (x ) ((x)^29)
735735#define NORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)>>3)
736736#define DENORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)<<3)
737- #define CODE_OFFSETS_NEED_NORMALIZATION 0
738- #define NORMALIZE_CODE_OFFSET (x ) (x) // Instructions are 4 bytes long, but the safe-point
739- #define DENORMALIZE_CODE_OFFSET (x ) (x) // offsets are encoded with a -1 adjustment.
737+ #define CODE_OFFSETS_NEED_NORMALIZATION 1
738+ #define NORMALIZE_CODE_OFFSET (x ) ((x)>>2) // Instructions are 4 bytes long
739+ #define DENORMALIZE_CODE_OFFSET (x ) ((x)<<2)
740740#define NORMALIZE_REGISTER (x ) (x)
741741#define DENORMALIZE_REGISTER (x ) (x)
742742#define NORMALIZE_NUM_SAFE_POINTS (x ) (x)
@@ -789,9 +789,9 @@ void FASTCALL decodeCallPattern(int pattern,
789789#define DENORMALIZE_STACK_BASE_REGISTER (x ) ((x) == 0 ? 22 : 3)
790790#define NORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)>>3)
791791#define DENORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)<<3)
792- #define CODE_OFFSETS_NEED_NORMALIZATION 0
793- #define NORMALIZE_CODE_OFFSET (x ) (x) // Instructions are 4 bytes long, but the safe-point
794- #define DENORMALIZE_CODE_OFFSET (x ) (x) // offsets are encoded with a -1 adjustment.
792+ #define CODE_OFFSETS_NEED_NORMALIZATION 1
793+ #define NORMALIZE_CODE_OFFSET (x ) ((x)>>2) // Instructions are 4 bytes long
794+ #define DENORMALIZE_CODE_OFFSET (x ) ((x)<<2)
795795#define NORMALIZE_REGISTER (x ) (x)
796796#define DENORMALIZE_REGISTER (x ) (x)
797797#define NORMALIZE_NUM_SAFE_POINTS (x ) (x)
@@ -844,9 +844,9 @@ void FASTCALL decodeCallPattern(int pattern,
844844#define DENORMALIZE_STACK_BASE_REGISTER (x ) ((x) == 0 ? 8 : 2)
845845#define NORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)>>3)
846846#define DENORMALIZE_SIZE_OF_STACK_AREA (x ) ((x)<<3)
847- #define CODE_OFFSETS_NEED_NORMALIZATION 0
848- #define NORMALIZE_CODE_OFFSET (x ) (x) // Instructions are 4 bytes long, but the safe-point
849- #define DENORMALIZE_CODE_OFFSET (x ) (x) // offsets are encoded with a -1 adjustment.
847+ #define CODE_OFFSETS_NEED_NORMALIZATION 1
848+ #define NORMALIZE_CODE_OFFSET (x ) ((x)>>2) // Instructions are 4 bytes long
849+ #define DENORMALIZE_CODE_OFFSET (x ) ((x)<<2)
850850#define NORMALIZE_REGISTER (x ) (x)
851851#define DENORMALIZE_REGISTER (x ) (x)
852852#define NORMALIZE_NUM_SAFE_POINTS (x ) (x)
0 commit comments