From cdd90254ddee6eddb4061ff3c1cb96409a003743 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 30 Dec 2011 11:20:33 +0100 Subject: [PATCH] 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. --- dlls/jscript/compile.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index 85000763b64..6d01db6e5f4 100644 --- a/dlls/jscript/compile.c +++ b/dlls/jscript/compile.c @@ -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); } -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) { 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); break; default: - hres = compile_interp_fallback(ctx, stat); + assert(0); } if(stat_ctx) { -- 2.11.4.GIT