uncomment assert (opcode <=4)

This commit is contained in:
e.gavrin
2014-07-09 19:58:28 +04:00
parent 80ee7731e3
commit 7c55a15002
2 changed files with 10 additions and 11 deletions
+1 -2
View File
@@ -49,8 +49,7 @@ void
init_int () init_int ()
{ {
#define INIT_OP_FUNC(name) __opfuncs[ name ] = opfunc_##name ; #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) OP_LIST (INIT_OP_FUNC)
} }
+2 -2
View File
@@ -31,10 +31,10 @@ opfunc __opfuncs[LAST_OP];
struct __int_data struct __int_data
{ {
int pos; int pos; /**< current opcode to execute */
ecma_Object_t *pThisBinding; /**< this binding for current context */ ecma_Object_t *pThisBinding; /**< this binding for current context */
ecma_Object_t *pLexEnv; /**< current lexical environment */ ecma_Object_t *pLexEnv; /**< current lexical environment */
int *root_op_addr; int *root_op_addr; /**< pointer to first opcode saved */
}; };
void gen_bytecode (void); void gen_bytecode (void);