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
5b2c2c5c
Commit
5b2c2c5c
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 assignment to member expression.
parent
9aafd031
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
compile.c
dlls/jscript/compile.c
+16
-0
engine.c
dlls/jscript/engine.c
+2
-3
No files found.
dlls/jscript/compile.c
View file @
5b2c2c5c
...
...
@@ -373,6 +373,22 @@ static HRESULT compile_assign_expression(compiler_ctx_t *ctx, binary_expression_
return
E_OUTOFMEMORY
;
break
;
}
case
EXPR_MEMBER
:
{
member_expression_t
*
member_expr
=
(
member_expression_t
*
)
expr
->
expression1
;
hres
=
compile_expression
(
ctx
,
member_expr
->
expression
);
if
(
FAILED
(
hres
))
return
hres
;
/* FIXME: Potential optimization */
hres
=
push_instr_str
(
ctx
,
OP_str
,
member_expr
->
identifier
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
push_instr
(
ctx
,
OP_memberid
)
==
-
1
)
return
E_OUTOFMEMORY
;
break
;
}
default:
expr
->
expr
.
eval
=
assign_expression_eval
;
return
compile_interp_fallback
(
ctx
,
&
expr
->
expr
);
...
...
dlls/jscript/engine.c
View file @
5b2c2c5c
...
...
@@ -3328,9 +3328,8 @@ HRESULT assign_expression_eval(script_ctx_t *ctx, expression_t *_expr, DWORD fla
}
if
(
SUCCEEDED
(
hres
))
{
hres
=
put_value
(
ctx
,
&
exprval
,
&
rval
,
ei
);
if
(
FAILED
(
hres
))
VariantClear
(
&
rval
);
assert
(
exprval
.
type
!=
EXPRVAL_IDREF
);
return
throw_reference_error
(
ctx
,
ei
,
JS_E_ILLEGAL_ASSIGN
,
NULL
);
}
exprval_release
(
&
exprval
);
...
...
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