Implementing syscall invocation sequence for ARMv7 architecture.

Removing dependencies to third-party libc routine implementations.
Introducing __TARGET_HOST define for host (non-MCU) builds.
This commit is contained in:
Ruben Ayrapetyan
2014-10-16 18:36:55 +04:00
parent 90789453ba
commit 9c3c835a7e
11 changed files with 156 additions and 213 deletions
+7 -7
View File
@@ -48,9 +48,9 @@ jerry_run (const char *script_source, size_t script_source_size,
optimizer_run_passes ((opcode_t *) opcodes);
#ifdef __TARGET_HOST_x64
#ifdef __TARGET_HOST
serializer_print_opcodes ();
#endif
#endif /* __TARGET_HOST */
parser_free ();
if (is_parse_only)
@@ -70,7 +70,7 @@ jerry_run (const char *script_source, size_t script_source_size,
return is_success;
} /* jerry_run */
#ifdef __TARGET_HOST_x64
#ifdef __TARGET_HOST
static uint8_t source_buffer[ JERRY_SOURCE_BUFFER_SIZE ];
static const char*
@@ -174,10 +174,10 @@ main (int argc __unused,
{
#ifdef JERRY_ENABLE_PP
show_opcodes = true;
#else
#else /* !JERRY_ENABLE_PP */
__printf ("Ignoring --show-opcodes since target is not x86_64 or debug is not enabled.\n");
show_opcodes = false;
#endif
#endif /* JERRY_ENABLE_PP */
}
else
{
@@ -197,7 +197,7 @@ main (int argc __unused,
jerry_exit (is_success ? ERR_OK : ERR_FAILED_ASSERTION_IN_SCRIPT);
}
#endif
#endif /* __TARGET_HOST */
#ifdef __TARGET_MCU
static uint32_t start __unused;
@@ -221,4 +221,4 @@ main (void)
source_size, false, false, false);
finish_parse_ms = (start - get_sys_tick_counter ()) / 1000;
}
#endif
#endif /* __TARGET_MCU */