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
7c3728d7
Commit
7c3728d7
authored
Dec 09, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use bytecode for '<<=' expression implementation.
parent
a80392e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
73 deletions
+3
-73
compile.c
dlls/jscript/compile.c
+2
-0
engine.c
dlls/jscript/engine.c
+0
-71
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 @
7c3728d7
...
...
@@ -625,6 +625,8 @@ static HRESULT compile_expression_noret(compiler_ctx_t *ctx, expression_t *expr,
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_mod
);
case
EXPR_ASSIGNOR
:
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_or
);
case
EXPR_ASSIGNLSHIFT
:
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_lshift
);
case
EXPR_ASSIGNRSHIFT
:
return
compile_assign_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_rshift
);
case
EXPR_ASSIGNRRSHIFT
:
...
...
dlls/jscript/engine.c
View file @
7c3728d7
...
...
@@ -1440,47 +1440,6 @@ static HRESULT binary_expr_eval(script_ctx_t *ctx, binary_expression_t *expr, op
return
S_OK
;
}
/* ECMA-262 3rd Edition 11.13.2 */
static
HRESULT
assign_oper_eval
(
script_ctx_t
*
ctx
,
expression_t
*
lexpr
,
expression_t
*
rexpr
,
oper_t
oper
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
{
VARIANT
retv
,
lval
,
rval
;
exprval_t
exprval
,
exprvalr
;
HRESULT
hres
;
hres
=
expr_eval
(
ctx
,
lexpr
,
EXPR_NEWREF
,
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
exprval_value
(
ctx
,
&
exprval
,
ei
,
&
lval
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
expr_eval
(
ctx
,
rexpr
,
0
,
ei
,
&
exprvalr
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
exprval_value
(
ctx
,
&
exprvalr
,
ei
,
&
rval
);
exprval_release
(
&
exprvalr
);
}
if
(
SUCCEEDED
(
hres
))
{
hres
=
oper
(
ctx
,
&
lval
,
&
rval
,
ei
,
&
retv
);
VariantClear
(
&
rval
);
}
VariantClear
(
&
lval
);
}
if
(
SUCCEEDED
(
hres
))
{
hres
=
put_value
(
ctx
,
&
exprval
,
&
retv
,
ei
);
if
(
FAILED
(
hres
))
VariantClear
(
&
retv
);
}
exprval_release
(
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
ret
->
type
=
EXPRVAL_VARIANT
;
ret
->
u
.
var
=
retv
;
return
S_OK
;
}
/* ECMA-262 3rd Edition 13 */
HRESULT
function_expression_eval
(
script_ctx_t
*
ctx
,
expression_t
*
_expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
{
...
...
@@ -3093,26 +3052,6 @@ static HRESULT interp_neg(exec_ctx_t *ctx)
}
/* ECMA-262 3rd Edition 11.7.1 */
static
HRESULT
lshift_eval
(
script_ctx_t
*
ctx
,
VARIANT
*
lval
,
VARIANT
*
rval
,
jsexcept_t
*
ei
,
VARIANT
*
retv
)
{
DWORD
ri
;
INT
li
;
HRESULT
hres
;
hres
=
to_int32
(
ctx
,
lval
,
ei
,
&
li
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
to_uint32
(
ctx
,
rval
,
ei
,
&
ri
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
retv
)
=
VT_I4
;
V_I4
(
retv
)
=
li
<<
(
ri
&
0x1f
);
return
S_OK
;
}
/* ECMA-262 3rd Edition 11.7.1 */
static
HRESULT
interp_lshift
(
exec_ctx_t
*
ctx
)
{
DWORD
r
;
...
...
@@ -3191,16 +3130,6 @@ static HRESULT interp_assign(exec_ctx_t *ctx)
return
stack_push
(
ctx
,
v
);
}
/* ECMA-262 3rd Edition 11.13.2 */
HRESULT
assign_lshift_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
,
lshift_eval
,
ei
,
ret
);
}
static
HRESULT
interp_undefined
(
exec_ctx_t
*
ctx
)
{
VARIANT
v
;
...
...
dlls/jscript/engine.h
View file @
7c3728d7
...
...
@@ -568,7 +568,6 @@ HRESULT property_value_expression_eval(script_ctx_t*,expression_t*,DWORD,jsexcep
HRESULT
instanceof_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
delete_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
typeof_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
assign_lshift_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
compiled_expression_eval
(
script_ctx_t
*
,
expression_t
*
,
DWORD
,
jsexcept_t
*
,
exprval_t
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/jscript/parser.y
View file @
7c3728d7
...
...
@@ -1340,7 +1340,7 @@ static const expression_eval_t expression_eval_table[] = {
compiled_expression_eval,
compiled_expression_eval,
compiled_expression_eval,
assign_lshift
_expression_eval,
compiled
_expression_eval,
compiled_expression_eval,
compiled_expression_eval,
compiled_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