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
7b022dbb
Commit
7b022dbb
authored
Dec 05, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use bytecode for '-=' expression implementation.
parent
087afe8b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
30 deletions
+3
-30
compile.c
dlls/jscript/compile.c
+2
-0
engine.c
dlls/jscript/engine.c
+0
-28
engine.h
dlls/jscript/engine.h
+0
-1
parser.y
dlls/jscript/parser.y
+1
-1
No files found.
dlls/jscript/compile.c
View file @
7b022dbb
...
...
@@ -479,6 +479,8 @@ static HRESULT compile_expression(compiler_ctx_t *ctx, expression_t *expr)
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_LAST
);
case
EXPR_ASSIGNADD
:
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_add
);
case
EXPR_ASSIGNSUB
:
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_sub
);
case
EXPR_BITNEG
:
return
compile_unary_expression
(
ctx
,
(
unary_expression_t
*
)
expr
,
OP_bneg
);
case
EXPR_BOR
:
...
...
dlls/jscript/engine.c
View file @
7b022dbb
...
...
@@ -2402,24 +2402,6 @@ static HRESULT interp_add(exec_ctx_t *ctx)
}
/* ECMA-262 3rd Edition 11.6.2 */
static
HRESULT
sub_eval
(
script_ctx_t
*
ctx
,
VARIANT
*
lval
,
VARIANT
*
rval
,
jsexcept_t
*
ei
,
VARIANT
*
retv
)
{
VARIANT
lnum
,
rnum
;
HRESULT
hres
;
hres
=
to_number
(
ctx
,
lval
,
ei
,
&
lnum
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
to_number
(
ctx
,
rval
,
ei
,
&
rnum
);
if
(
FAILED
(
hres
))
return
hres
;
num_set_val
(
retv
,
num_val
(
&
lnum
)
-
num_val
(
&
rnum
));
return
S_OK
;
}
/* ECMA-262 3rd Edition 11.6.2 */
static
HRESULT
interp_sub
(
exec_ctx_t
*
ctx
)
{
VARIANT
l
,
r
;
...
...
@@ -3402,16 +3384,6 @@ HRESULT assign_rrshift_expression_eval(script_ctx_t *ctx, expression_t *_expr, D
}
/* ECMA-262 3rd Edition 11.13.2 */
HRESULT
assign_sub_expression_eval
(
script_ctx_t
*
ctx
,
expression_t
*
_expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
{
binary_expression_t
*
expr
=
(
binary_expression_t
*
)
_expr
;
TRACE
(
"
\n
"
);
return
assign_oper_eval
(
ctx
,
expr
->
expression1
,
expr
->
expression2
,
sub_eval
,
ei
,
ret
);
}
/* ECMA-262 3rd Edition 11.13.2 */
HRESULT
assign_mul_expression_eval
(
script_ctx_t
*
ctx
,
expression_t
*
_expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
{
binary_expression_t
*
expr
=
(
binary_expression_t
*
)
_expr
;
...
...
dlls/jscript/engine.h
View file @
7b022dbb
...
...
@@ -575,7 +575,6 @@ HRESULT right2_shift_expression_eval(script_ctx_t*,expression_t*,DWORD,jsexcept_
HRESULT
assign_lshift_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_rshift_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_rrshift_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_sub_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_mul_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_div_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_mod_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/jscript/parser.y
View file @
7b022dbb
...
...
@@ -1345,7 +1345,7 @@ static const expression_eval_t expression_eval_table[] = {
assign_rshift_expression_eval,
assign_rrshift_expression_eval,
compiled_expression_eval,
assign_sub
_expression_eval,
compiled
_expression_eval,
assign_mul_expression_eval,
assign_div_expression_eval,
assign_mod_expression_eval,
...
...
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