Skip to content

Commit 1302887

Browse files
rtakacsakosthekiss
authored andcommitted
Remove the JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER snapshot flag. (#2550)
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.uszeged@partner.samsung.com
1 parent d5a635a commit 1302887

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

jerry-core/api/jerry-snapshot.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ snapshot_get_global_flags (bool has_regex, /**< regex literal is present */
4242

4343
uint32_t flags = 0;
4444

45-
#ifdef JERRY_CPOINTER_32_BIT
46-
flags |= JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER;
47-
#endif /* JERRY_CPOINTER_32_BIT */
4845
#ifndef CONFIG_DISABLE_REGEXP_BUILTIN
4946
flags |= (has_regex ? JERRY_SNAPSHOT_HAS_REGEX_LITERAL : 0);
5047
#endif /* !CONFIG_DISABLE_REGEXP_BUILTIN */

jerry-core/api/jerry-snapshot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef enum
5252
JERRY_SNAPSHOT_HAS_REGEX_LITERAL = (1u << 0), /**< byte code has regex literal */
5353
JERRY_SNAPSHOT_HAS_CLASS_LITERAL = (1u << 1), /**< byte code has class literal */
5454
/* 24 bits are reserved for compile time features */
55-
JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER = (1u << 8) /**< compressed pointers are four byte long */
55+
JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER = (1u << 8) /**< deprecated, an unused placeholder now */
5656
} jerry_snapshot_global_flags_t;
5757

5858
#endif /* !JERRY_SNAPSHOT_H */

0 commit comments

Comments
 (0)