From 6014189fc1d4ddcd0684f5d26a553e13efaf5472 Mon Sep 17 00:00:00 2001 From: Roland Takacs Date: Fri, 5 Oct 2018 08:56:58 +0200 Subject: [PATCH] Remove the JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER snapshot flag. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.uszeged@partner.samsung.com --- jerry-core/api/jerry-snapshot.c | 3 --- jerry-core/api/jerry-snapshot.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/jerry-core/api/jerry-snapshot.c b/jerry-core/api/jerry-snapshot.c index d4ee42ff29..e4271de1af 100644 --- a/jerry-core/api/jerry-snapshot.c +++ b/jerry-core/api/jerry-snapshot.c @@ -42,9 +42,6 @@ snapshot_get_global_flags (bool has_regex, /**< regex literal is present */ uint32_t flags = 0; -#ifdef JERRY_CPOINTER_32_BIT - flags |= JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER; -#endif /* JERRY_CPOINTER_32_BIT */ #ifndef CONFIG_DISABLE_REGEXP_BUILTIN flags |= (has_regex ? JERRY_SNAPSHOT_HAS_REGEX_LITERAL : 0); #endif /* !CONFIG_DISABLE_REGEXP_BUILTIN */ diff --git a/jerry-core/api/jerry-snapshot.h b/jerry-core/api/jerry-snapshot.h index 9544f0fe58..f9beac8329 100644 --- a/jerry-core/api/jerry-snapshot.h +++ b/jerry-core/api/jerry-snapshot.h @@ -52,7 +52,7 @@ typedef enum JERRY_SNAPSHOT_HAS_REGEX_LITERAL = (1u << 0), /**< byte code has regex literal */ JERRY_SNAPSHOT_HAS_CLASS_LITERAL = (1u << 1), /**< byte code has class literal */ /* 24 bits are reserved for compile time features */ - JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER = (1u << 8) /**< compressed pointers are four byte long */ + JERRY_SNAPSHOT_FOUR_BYTE_CPOINTER = (1u << 8) /**< deprecated, an unused placeholder now */ } jerry_snapshot_global_flags_t; #endif /* !JERRY_SNAPSHOT_H */