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
e0552ad8
Commit
e0552ad8
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: Use bytecode for labeled continue and break statements.
parent
b82a6982
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
31 deletions
+4
-31
compile.c
dlls/jscript/compile.c
+4
-8
engine.c
dlls/jscript/engine.c
+0
-20
engine.h
dlls/jscript/engine.h
+0
-3
No files found.
dlls/jscript/compile.c
View file @
e0552ad8
...
...
@@ -1294,10 +1294,8 @@ static HRESULT compile_continue_statement(compiler_ctx_t *ctx, branch_statement_
return
JS_E_INVALID_CONTINUE
;
}
if
(
stat
->
identifier
)
{
stat
->
stat
.
eval
=
continue_statement_eval
;
return
compile_interp_fallback
(
ctx
,
&
stat
->
stat
);
}
if
(
stat
->
identifier
)
return
push_instr
(
ctx
,
OP_label
)
==
-
1
?
E_OUTOFMEMORY
:
S_OK
;
/* FIXME */
hres
=
pop_to_stat
(
ctx
,
pop_ctx
);
if
(
FAILED
(
hres
))
...
...
@@ -1325,10 +1323,8 @@ static HRESULT compile_break_statement(compiler_ctx_t *ctx, branch_statement_t *
return
JS_E_INVALID_BREAK
;
}
if
(
stat
->
identifier
)
{
stat
->
stat
.
eval
=
break_statement_eval
;
return
compile_interp_fallback
(
ctx
,
&
stat
->
stat
);
}
if
(
stat
->
identifier
)
return
push_instr
(
ctx
,
OP_label
)
==
-
1
?
E_OUTOFMEMORY
:
S_OK
;
/* FIXME */
hres
=
pop_to_stat
(
ctx
,
pop_ctx
);
if
(
FAILED
(
hres
))
...
...
dlls/jscript/engine.c
View file @
e0552ad8
...
...
@@ -644,26 +644,6 @@ static HRESULT interp_forin(exec_ctx_t *ctx)
return
S_OK
;
}
/* ECMA-262 3rd Edition 12.7 */
HRESULT
continue_statement_eval
(
script_ctx_t
*
ctx
,
statement_t
*
_stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
branch_statement_t
*
stat
=
(
branch_statement_t
*
)
_stat
;
assert
(
stat
->
identifier
!=
NULL
);
FIXME
(
"identifier not implemented
\n
"
);
return
E_NOTIMPL
;
}
/* ECMA-262 3rd Edition 12.8 */
HRESULT
break_statement_eval
(
script_ctx_t
*
ctx
,
statement_t
*
_stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
branch_statement_t
*
stat
=
(
branch_statement_t
*
)
_stat
;
assert
(
stat
->
identifier
!=
NULL
);
FIXME
(
"identifier not implemented
\n
"
);
return
E_NOTIMPL
;
}
/* ECMA-262 3rd Edition 12.10 */
HRESULT
interp_push_scope
(
exec_ctx_t
*
ctx
)
{
...
...
dlls/jscript/engine.h
View file @
e0552ad8
...
...
@@ -411,9 +411,6 @@ typedef struct {
statement_t
*
finally_statement
;
}
try_statement_t
;
HRESULT
continue_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
break_statement_eval
(
script_ctx_t
*
,
statement_t
*
,
return_type_t
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
typedef
struct
{
enum
{
EXPRVAL_VARIANT
,
...
...
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