1 #ifndef CONFIG_JUPITER_H 2 #define CONFIG_JUPITER_H 3 4 #ifdef JERRY_FOR_IAR_CONFIG 5 6 #ifdef JERRY_IAR_JUPITER 7 8 #include "fcntl.h" 9 #include "unistd.h" 10 #include "sys/stat.h" 11 #include "dirent.h" 12 #include "ohos_types.h" 13 14 // Maximum size for js and snapshot file 15 #ifndef INPUTJS_BUFFER_SIZE 16 #define INPUTJS_BUFFER_SIZE (32 * 1024) 17 #endif /* INPUTJS_BUFFER_SIZE */ 18 19 #ifndef SNAPSHOT_BUFFER_SIZE 20 #define SNAPSHOT_BUFFER_SIZE (24 * 1024) 21 #endif /* SNAPSHOT_BUFFER_SIZE */ 22 23 #define CONVERTION_RATIO (1024) 24 #define CONTEXT_SIZE_FOR_TASK (3) 25 26 #ifndef BMS_TASK_HEAP_SIZE 27 #define BMS_TASK_HEAP_SIZE (48) 28 #endif /* BMS_TASK_HEAP_SIZE */ 29 30 #define BMS_TASK_CONTEXT_AND_HEAP_SIZE (BMS_TASK_HEAP_SIZE + CONTEXT_SIZE_FOR_TASK) 31 32 #ifndef JS_TASK_HEAP_SIZE 33 #define JS_TASK_HEAP_SIZE (64) 34 #endif /* JS_TASK_HEAP_SIZE */ 35 36 // >= 51400 + (64-48) * 1024 + 8 37 #define JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (JS_TASK_HEAP_SIZE * CONVERTION_RATIO + 5000 + 16) 38 39 #ifndef JERRY_ENABLE_SNAPSHOT_VERSION_CHECK 40 #define JERRY_ENABLE_SNAPSHOT_VERSION_CHECK (1) 41 #endif /* JERRY_ENABLE_SNAPSHOT_VERSION_CHECK */ 42 43 #endif /* JERRY_IAR_JUPITER */ 44 45 #endif /* JERRY_FOR_IAR_CONFIG */ 46 47 #endif // CONFIG_JUPITER_H 48