1425bb815Sopenharmony_ci#ifndef CONFIG_JUPITER_H 2425bb815Sopenharmony_ci#define CONFIG_JUPITER_H 3425bb815Sopenharmony_ci 4425bb815Sopenharmony_ci#ifdef JERRY_FOR_IAR_CONFIG 5425bb815Sopenharmony_ci 6425bb815Sopenharmony_ci#ifdef JERRY_IAR_JUPITER 7425bb815Sopenharmony_ci 8425bb815Sopenharmony_ci#include "fcntl.h" 9425bb815Sopenharmony_ci#include "unistd.h" 10425bb815Sopenharmony_ci#include "sys/stat.h" 11425bb815Sopenharmony_ci#include "dirent.h" 12425bb815Sopenharmony_ci#include "ohos_types.h" 13425bb815Sopenharmony_ci 14425bb815Sopenharmony_ci// Maximum size for js and snapshot file 15425bb815Sopenharmony_ci#ifndef INPUTJS_BUFFER_SIZE 16425bb815Sopenharmony_ci#define INPUTJS_BUFFER_SIZE (32 * 1024) 17425bb815Sopenharmony_ci#endif /* INPUTJS_BUFFER_SIZE */ 18425bb815Sopenharmony_ci 19425bb815Sopenharmony_ci#ifndef SNAPSHOT_BUFFER_SIZE 20425bb815Sopenharmony_ci#define SNAPSHOT_BUFFER_SIZE (24 * 1024) 21425bb815Sopenharmony_ci#endif /* SNAPSHOT_BUFFER_SIZE */ 22425bb815Sopenharmony_ci 23425bb815Sopenharmony_ci#define CONVERTION_RATIO (1024) 24425bb815Sopenharmony_ci#define CONTEXT_SIZE_FOR_TASK (5) 25425bb815Sopenharmony_ci 26425bb815Sopenharmony_ci#ifndef BMS_TASK_HEAP_SIZE 27425bb815Sopenharmony_ci#define BMS_TASK_HEAP_SIZE (64) 28425bb815Sopenharmony_ci#endif /* BMS_TASK_HEAP_SIZE */ 29425bb815Sopenharmony_ci 30425bb815Sopenharmony_ci#define BMS_TASK_CONTEXT_AND_HEAP_SIZE (BMS_TASK_HEAP_SIZE + CONTEXT_SIZE_FOR_TASK) 31425bb815Sopenharmony_ci 32425bb815Sopenharmony_ci#ifndef JS_TASK_HEAP_SIZE 33425bb815Sopenharmony_ci#define JS_TASK_HEAP_SIZE (64) 34425bb815Sopenharmony_ci#endif /* JS_TASK_HEAP_SIZE */ 35425bb815Sopenharmony_ci 36425bb815Sopenharmony_ci// >= 51400 + (64-48) * 1024 + 8 37425bb815Sopenharmony_ci#define JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (JS_TASK_HEAP_SIZE * CONVERTION_RATIO + 5000 + 16) 38425bb815Sopenharmony_ci 39425bb815Sopenharmony_ci#ifndef JERRY_ENABLE_SNAPSHOT_VERSION_CHECK 40425bb815Sopenharmony_ci#define JERRY_ENABLE_SNAPSHOT_VERSION_CHECK (1) 41425bb815Sopenharmony_ci#endif /* JERRY_ENABLE_SNAPSHOT_VERSION_CHECK */ 42425bb815Sopenharmony_ci 43425bb815Sopenharmony_ci#endif /* JERRY_IAR_JUPITER */ 44425bb815Sopenharmony_ci 45425bb815Sopenharmony_ci#endif /* JERRY_FOR_IAR_CONFIG */ 46425bb815Sopenharmony_ci 47425bb815Sopenharmony_ci#endif // CONFIG_JUPITER_H 48