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

Alexandre Julliard julliard at winehq.org
Fri Dec 30 10:27:01 CST 2011


Module: wine
Branch: master
Commit: cdd90254ddee6eddb4061ff3c1cb96409a003743
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cdd90254ddee6eddb4061ff3c1cb96409a003743

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Dec 30 11:20:33 2011 +0100

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 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c
index 8500076..6d01db6 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) {




More information about the wine-cvs mailing list