Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7c3160ae
Commit
7c3160ae
authored
Dec 19, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use compiler for hanling empty statements.
parent
cf2fc11e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 deletions
+3
-11
compile.c
dlls/jscript/compile.c
+2
-0
engine.c
dlls/jscript/engine.c
+0
-9
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 @
7c3160ae
...
...
@@ -928,6 +928,8 @@ static HRESULT compile_statement(compiler_ctx_t *ctx, statement_t *stat)
switch
(
stat
->
type
)
{
case
STAT_BLOCK
:
return
compile_block_statement
(
ctx
,
((
block_statement_t
*
)
stat
)
->
stat_list
);
case
STAT_EMPTY
:
return
push_instr
(
ctx
,
OP_undefined
)
==
-
1
?
E_OUTOFMEMORY
:
S_OK
;
/* FIXME */
case
STAT_EXPR
:
return
compile_expression_statement
(
ctx
,
(
expression_statement_t
*
)
stat
);
case
STAT_IF
:
...
...
dlls/jscript/engine.c
View file @
7c3160ae
...
...
@@ -703,15 +703,6 @@ HRESULT var_statement_eval(script_ctx_t *ctx, statement_t *_stat, return_type_t
return
S_OK
;
}
/* ECMA-262 3rd Edition 12.3 */
HRESULT
empty_statement_eval
(
script_ctx_t
*
ctx
,
statement_t
*
stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
TRACE
(
"
\n
"
);
V_VT
(
ret
)
=
VT_EMPTY
;
return
S_OK
;
}
/* ECMA-262 3rd Edition 12.6.2 */
HRESULT
while_statement_eval
(
script_ctx_t
*
ctx
,
statement_t
*
_stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
...
...
dlls/jscript/engine.h
View file @
7c3160ae
...
...
@@ -399,7 +399,6 @@ typedef struct {
HRESULT
compiled_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
var_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
empty_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
while_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
for_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
forin_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/jscript/parser.y
View file @
7c3160ae
...
...
@@ -839,7 +839,7 @@ static const statement_eval_t stat_eval_table[] = {
compiled_statement_eval,
break_statement_eval,
continue_statement_eval,
empty
_statement_eval,
compiled
_statement_eval,
compiled_statement_eval,
for_statement_eval,
forin_statement_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