remove unused gen_bytecode and save_op_data

This commit is contained in:
e.gavrin 2014-07-16 23:03:58 +04:00
parent c53eccbdd6
commit 73bf0f9be1
4 changed files with 0 additions and 34 deletions

View File

@ -15,31 +15,6 @@
#include "interpreter.h"
void
gen_bytecode ()
{
/*
while (true) {
LEDToggle (LED3);
LEDToggle (LED6);
LEDToggle (LED7);
LEDToggle (LED4);
LEDToggle (LED10);
LEDToggle (LED8);
LEDToggle (LED9);
LEDToggle (LED5);
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));
}
void
init_int (void)
{

View File

@ -31,7 +31,6 @@ struct __int_data
int *root_op_addr; /**< pointer to first opcode saved */
};
void gen_bytecode (void);
void init_int (void);
void run_int (void);
void run_int_from_pos (struct __int_data *);

View File

@ -18,12 +18,6 @@
#include "jerry-libc.h"
#include "opcodes.h"
void
save_op_data (int pos, OPCODE opdata)
{
__program[pos] = opdata;
}
void opfunc_loop_init_num (OPCODE opdata __unused, struct __int_data *int_data __unused) { JERRY_UNREACHABLE (); }
void opfunc_loop_precond_begin_num (OPCODE opdata __unused, struct __int_data *int_data __unused) { JERRY_UNREACHABLE (); }
void opfunc_loop_precond_end_num (OPCODE opdata __unused, struct __int_data *int_data __unused) { JERRY_UNREACHABLE (); }

View File

@ -149,7 +149,5 @@ OPCODE
}
__packed;
void save_op_data (int, OPCODE);
#endif /* OPCODES_H */