uncomment assert (opcode <=4)
This commit is contained in:
@@ -32,12 +32,12 @@ gen_bytecode ()
|
||||
wait(500);
|
||||
}
|
||||
*/
|
||||
// save_op_data (0, getop_loop_inf (1));
|
||||
// save_op_data (1, getop_call_1 (0, 12));
|
||||
// save_op_data (2, getop_call_1 (0, 13));
|
||||
// save_op_data (3, getop_call_1 (0, 14));
|
||||
// save_op_data (4, getop_call_1 (0, 15));
|
||||
// save_op_data (5, getop_jmp (0));
|
||||
// save_op_data (0, getop_loop_inf (1));
|
||||
// save_op_data (1, getop_call_1 (0, 12));
|
||||
// save_op_data (2, getop_call_1 (0, 13));
|
||||
// save_op_data (3, getop_call_1 (0, 14));
|
||||
// save_op_data (4, getop_call_1 (0, 15));
|
||||
// save_op_data (5, getop_jmp (0));
|
||||
|
||||
#ifdef __MCU
|
||||
// It's mandatory to restart app!
|
||||
@@ -49,8 +49,7 @@ void
|
||||
init_int ()
|
||||
{
|
||||
#define INIT_OP_FUNC(name) __opfuncs[ name ] = opfunc_##name ;
|
||||
// FIXME
|
||||
// JERRY_STATIC_ASSERT (sizeof (OPCODE) <= 4);
|
||||
JERRY_STATIC_ASSERT (sizeof (OPCODE) <= 4);
|
||||
|
||||
OP_LIST (INIT_OP_FUNC)
|
||||
}
|
||||
@@ -65,7 +64,7 @@ run_int ()
|
||||
|
||||
while (true)
|
||||
{
|
||||
run_int_from_pos(&int_data);
|
||||
run_int_from_pos (&int_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user