jscript: Get rid of no longer needed compile_interp_fallback since we can handle all execution by bytecode.

We use compiler on whole functions body now. There is still some work
done to move it one level up (to whole source string) to do some work
that's currently done (sometimes in a hacky way) by parser, but the most
critical part is done.
This commit is contained in:
Jacek Caban 2011-12-30 11:20:33 +01:00 committed by Alexandre Julliard
parent e0552ad8c3
commit cdd90254dd
1 changed files with 1 additions and 13 deletions

View File

@ -518,18 +518,6 @@ static HRESULT compile_new_expression(compiler_ctx_t *ctx, call_expression_t *ex
return push_instr_int(ctx, OP_new, arg_cnt); return push_instr_int(ctx, OP_new, arg_cnt);
} }
static HRESULT compile_interp_fallback(compiler_ctx_t *ctx, statement_t *stat)
{
unsigned instr;
instr = push_instr(ctx, OP_tree);
if(instr == -1)
return E_OUTOFMEMORY;
instr_ptr(ctx, instr)->arg1.stat = stat;
return S_OK;
}
static HRESULT compile_call_expression(compiler_ctx_t *ctx, call_expression_t *expr, BOOL *no_ret) static HRESULT compile_call_expression(compiler_ctx_t *ctx, call_expression_t *expr, BOOL *no_ret)
{ {
unsigned arg_cnt = 0; unsigned arg_cnt = 0;
@ -1614,7 +1602,7 @@ static HRESULT compile_statement(compiler_ctx_t *ctx, statement_ctx_t *stat_ctx,
hres = compile_with_statement(ctx, (with_statement_t*)stat); hres = compile_with_statement(ctx, (with_statement_t*)stat);
break; break;
default: default:
hres = compile_interp_fallback(ctx, stat); assert(0);
} }
if(stat_ctx) { if(stat_ctx) {