uncomment assert (opcode <=4)
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user