__HOST -> __TARGET_HOST_X64

This commit is contained in:
Ruben Ayrapetyan
2014-07-31 22:23:05 +04:00
parent 7ba8167591
commit 020325d199
7 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ ifeq ($(OPTION_NDEBUG),enable)
endif endif
ifeq ($(OPTION_MCU),disable) ifeq ($(OPTION_MCU),disable)
DEFINES_JERRY += -D__HOST -DJERRY_SOURCE_BUFFER_SIZE=$$((1024*1024)) DEFINES_JERRY += -D__TARGET_HOST_x64 -DJERRY_SOURCE_BUFFER_SIZE=$$((1024*1024))
CFLAGS_COMMON += -fno-stack-protector CFLAGS_COMMON += -fno-stack-protector
ifeq ($(OPTION_MUSL),enable) ifeq ($(OPTION_MUSL),enable)
+2 -2
View File
@@ -388,7 +388,7 @@ opfunc_call_1 (OPCODE opdata __unused, struct __int_data *int_data)
ecma_completion_value_t ret_value; ecma_completion_value_t ret_value;
ret_value = ecma_make_empty_completion_value (); ret_value = ecma_make_empty_completion_value ();
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("%d::op_call_1:idx:%d:%d\t", __printf ("%d::op_call_1:idx:%d:%d\t",
int_data->pos, int_data->pos,
opdata.data.call_1.name_lit_idx, opdata.data.call_1.name_lit_idx,
@@ -400,7 +400,7 @@ opfunc_call_1 (OPCODE opdata __unused, struct __int_data *int_data)
string_literal_copy str_value; string_literal_copy str_value;
init_string_literal_copy( opdata.data.call_1.name_lit_idx, &str_value); init_string_literal_copy( opdata.data.call_1.name_lit_idx, &str_value);
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf("%s\n", str_value.str_p); __printf("%s\n", str_value.str_p);
#endif #endif
+5 -5
View File
@@ -96,7 +96,7 @@ increase_strings_cache (void)
strings_cache_size = new_cache_size; strings_cache_size = new_cache_size;
} }
#ifdef __HOST #ifdef __TARGET_HOST_x64
static void static void
dump_current_line (void) dump_current_line (void)
{ {
@@ -897,20 +897,20 @@ lexer_next_token_private (void)
token token
lexer_next_token (void) lexer_next_token (void)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
if (buffer == buffer_start) if (buffer == buffer_start)
dump_current_line (); dump_current_line ();
#endif /* __HOST */ #endif /* __TARGET_HOST_x64 */
token tok = lexer_next_token_private (); token tok = lexer_next_token_private ();
#ifdef __HOST #ifdef __TARGET_HOST_x64
if (tok.type == TOK_NEWLINE) if (tok.type == TOK_NEWLINE)
{ {
dump_current_line (); dump_current_line ();
return tok; return tok;
} }
#endif /* __HOST */ #endif /* __TARGET_HOST_x64 */
return tok; return tok;
} }
+3 -3
View File
@@ -68,7 +68,7 @@ assert_keyword (keyword kw)
{ {
if (tok.type != TOK_KEYWORD || tok.data.kw != kw) if (tok.type != TOK_KEYWORD || tok.data.kw != kw)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("assert_keyword: %d\n", kw); __printf ("assert_keyword: %d\n", kw);
#endif #endif
JERRY_UNREACHABLE (); JERRY_UNREACHABLE ();
@@ -86,7 +86,7 @@ current_token_must_be(token_type tt)
{ {
if (tok.type != tt) if (tok.type != tt)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("current_token_must_be: %d\n", tt); __printf ("current_token_must_be: %d\n", tt);
#endif #endif
parser_fatal (ERR_PARSER); parser_fatal (ERR_PARSER);
@@ -107,7 +107,7 @@ next_token_must_be (token_type tt)
tok = lexer_next_token (); tok = lexer_next_token ();
if (tok.type != tt) if (tok.type != tt)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("next_token_must_be: %d\n", tt); __printf ("next_token_must_be: %d\n", tt);
#endif #endif
parser_fatal (ERR_PARSER); parser_fatal (ERR_PARSER);
+4 -4
View File
@@ -29,7 +29,7 @@
void void
led_toggle (uint32_t led_id) led_toggle (uint32_t led_id)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("led_toggle: %d\n", led_id); __printf ("led_toggle: %d\n", led_id);
#endif #endif
@@ -42,7 +42,7 @@ led_toggle (uint32_t led_id)
void void
led_on (uint32_t led_id) led_on (uint32_t led_id)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("led_on: %d\n", led_id); __printf ("led_on: %d\n", led_id);
#endif #endif
@@ -55,7 +55,7 @@ led_on (uint32_t led_id)
void void
led_off (uint32_t led_id) led_off (uint32_t led_id)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("led_off: %d\n", led_id); __printf ("led_off: %d\n", led_id);
#endif #endif
@@ -67,7 +67,7 @@ led_off (uint32_t led_id)
void void
led_blink_once (uint32_t led_id) led_blink_once (uint32_t led_id)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
__printf ("led_blink_once: %d\n", led_id); __printf ("led_blink_once: %d\n", led_id);
#endif #endif
+1 -1
View File
@@ -60,7 +60,7 @@ analog_write (uint32_t arg1 __unused, uint32_t arg2 __unused)
void void
wait_ms (uint32_t time_ms) wait_ms (uint32_t time_ms)
{ {
#ifdef __HOST #ifdef __TARGET_HOST_x64
// 1 millisecond = 1,000,000 Nanoseconds // 1 millisecond = 1,000,000 Nanoseconds
#define NANO_SECOND_MULTIPLIER 1000000 #define NANO_SECOND_MULTIPLIER 1000000
__printf ("wait_ms: %d\n", time_ms); __printf ("wait_ms: %d\n", time_ms);
+3 -3
View File
@@ -61,7 +61,7 @@ parser_run (const char *script_source, size_t script_source_size, bool is_show_o
optimizer_run_passes ((OPCODE *) opcodes); optimizer_run_passes ((OPCODE *) opcodes);
#ifdef __HOST #ifdef __TARGET_HOST_x64
serializer_print_opcodes (); serializer_print_opcodes ();
#endif #endif
@@ -87,12 +87,12 @@ jerry_run (const char *script_source, size_t script_source_size, bool is_parse_o
init_int (opcodes); init_int (opcodes);
#ifdef __HOST #ifdef __TARGET_HOST_x64
run_int (); run_int ();
#endif #endif
} /* jerry_run */ } /* jerry_run */
#ifdef __HOST #ifdef __TARGET_HOST_x64
static uint8_t source_buffer[ JERRY_SOURCE_BUFFER_SIZE ]; static uint8_t source_buffer[ JERRY_SOURCE_BUFFER_SIZE ];
static const char* static const char*