Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
83e86588
Commit
83e86588
authored
Dec 30, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Get rid of no longer needed interp_tree.
parent
cdd90254
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
25 deletions
+2
-25
compile.c
dlls/jscript/compile.c
+0
-1
engine.c
dlls/jscript/engine.c
+1
-16
engine.h
dlls/jscript/engine.h
+1
-7
parser.y
dlls/jscript/parser.y
+0
-1
No files found.
dlls/jscript/compile.c
View file @
83e86588
...
...
@@ -81,7 +81,6 @@ static void dump_instr_arg(instr_arg_type_t type, instr_arg_t *arg)
case
ARG_DBL
:
TRACE_
(
jscript_disas
)(
"
\t
%lf"
,
*
arg
->
dbl
);
break
;
case
ARG_STAT
:
case
ARG_FUNC
:
case
ARG_NONE
:
break
;
...
...
dlls/jscript/engine.c
View file @
83e86588
/*
* Copyright 2008 Jacek Caban for CodeWeavers
* Copyright 2008
,2011
Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -2439,21 +2439,6 @@ static HRESULT interp_ret(exec_ctx_t *ctx)
return
S_OK
;
}
static
HRESULT
interp_tree
(
exec_ctx_t
*
ctx
)
{
instr_t
*
instr
=
ctx
->
parser
->
code
->
instrs
+
ctx
->
ip
;
VARIANT
v
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
hres
=
instr
->
arg1
.
stat
->
eval
(
ctx
->
parser
->
script
,
instr
->
arg1
.
stat
,
ctx
->
rt
,
&
v
);
if
(
FAILED
(
hres
))
return
hres
;
return
stack_push
(
ctx
,
&
v
);
}
typedef
HRESULT
(
*
op_func_t
)(
exec_ctx_t
*
);
static
const
op_func_t
op_funcs
[]
=
{
...
...
dlls/jscript/engine.h
View file @
83e86588
/*
* Copyright 2008 Jacek Caban for CodeWeavers
* Copyright 2008
,2011
Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -106,7 +106,6 @@ typedef struct _func_stack {
X(throw_ref, 0, ARG_UINT, 0) \
X(throw_type, 0, ARG_UINT, ARG_STR) \
X(tonum, 1, 0,0) \
X(tree, 1, ARG_STAT, 0) \
X(typeof, 1, 0,0) \
X(typeofid, 1, 0,0) \
X(typeofident,1, 0,0) \
...
...
@@ -126,7 +125,6 @@ OP_LIST
}
jsop_t
;
typedef
union
{
statement_t
*
stat
;
BSTR
bstr
;
double
*
dbl
;
LONG
lng
;
...
...
@@ -140,7 +138,6 @@ typedef enum {
ARG_ADDR
,
ARG_BSTR
,
ARG_DBL
,
ARG_STAT
,
ARG_FUNC
,
ARG_INT
,
ARG_STR
,
...
...
@@ -296,8 +293,6 @@ typedef struct _variable_declaration_t {
struct
_variable_declaration_t
*
next
;
}
variable_declaration_t
;
typedef
HRESULT
(
*
statement_eval_t
)(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
);
typedef
enum
{
STAT_BLOCK
,
STAT_BREAK
,
...
...
@@ -319,7 +314,6 @@ typedef enum {
struct
_statement_t
{
statement_type_t
type
;
statement_eval_t
eval
;
statement_t
*
next
;
};
...
...
dlls/jscript/parser.y
View file @
83e86588
...
...
@@ -844,7 +844,6 @@ static void *new_statement(parser_ctx_t *ctx, statement_type_t type, size_t size
return NULL;
stat->type = type;
stat->eval = NULL;
stat->next = NULL;
return stat;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment