Add support of native calls

This commit is contained in:
Ilmir Usmanov
2014-09-25 15:57:18 +04:00
parent c2ca158d19
commit 42876bdc8f
3 changed files with 91 additions and 2 deletions
+4
View File
@@ -37,6 +37,10 @@ opfunc_native_call (opcode_t opdata, /**< operation data */
const idx_t native_call_id_idx = opdata.data.native_call.name;
const idx_t args_number = opdata.data.native_call.arg_list;
JERRY_ASSERT (native_call_id_idx < OPCODE_NATIVE_CALL__COUNT);
int_data->pos++;
JERRY_STATIC_ASSERT (OPCODE_NATIVE_CALL__COUNT < (1u << (sizeof (native_call_id_idx) * JERRY_BITSINBYTE)));
ecma_value_t arg_values[args_number + 1 /* length of array should not be zero */];