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
80113b5c
Commit
80113b5c
authored
Dec 28, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use labels in compiler for ending loops.
parent
3b56e49e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
compile.c
dlls/jscript/compile.c
+0
-0
engine.c
dlls/jscript/engine.c
+5
-2
engine.h
dlls/jscript/engine.h
+5
-3
No files found.
dlls/jscript/compile.c
View file @
80113b5c
This diff is collapsed.
Click to expand it.
dlls/jscript/engine.c
View file @
80113b5c
...
@@ -1351,6 +1351,9 @@ static HRESULT interp_push_except(exec_ctx_t *ctx)
...
@@ -1351,6 +1351,9 @@ static HRESULT interp_push_except(exec_ctx_t *ctx)
hres
=
stack_push_bool
(
ctx
,
TRUE
);
hres
=
stack_push_bool
(
ctx
,
TRUE
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
hres
=
stack_push_bool
(
ctx
,
TRUE
);
if
(
FAILED
(
hres
))
return
hres
;
}
}
except
=
heap_alloc
(
sizeof
(
*
except
));
except
=
heap_alloc
(
sizeof
(
*
except
));
...
@@ -1400,8 +1403,8 @@ static HRESULT interp_end_finally(exec_ctx_t *ctx)
...
@@ -1400,8 +1403,8 @@ static HRESULT interp_end_finally(exec_ctx_t *ctx)
return
DISP_E_EXCEPTION
;
return
DISP_E_EXCEPTION
;
}
}
*
stack_top
(
ctx
)
=
*
v
;
stack_popn
(
ctx
,
2
)
;
return
S_OK
;
return
stack_push
(
ctx
,
v
)
;
}
}
/* ECMA-262 3rd Edition 13 */
/* ECMA-262 3rd Edition 13 */
...
...
dlls/jscript/engine.h
View file @
80113b5c
...
@@ -62,7 +62,7 @@ typedef struct _func_stack {
...
@@ -62,7 +62,7 @@ typedef struct _func_stack {
X(end_finally,1, 0,0) \
X(end_finally,1, 0,0) \
X(eq, 1, 0,0) \
X(eq, 1, 0,0) \
X(eq2, 1, 0,0) \
X(eq2, 1, 0,0) \
X(forin, 0, ARG_
UINT
, 0) \
X(forin, 0, ARG_
ADDR
, 0) \
X(func, 1, ARG_FUNC, 0) \
X(func, 1, ARG_FUNC, 0) \
X(gt, 1, 0,0) \
X(gt, 1, 0,0) \
X(gteq, 1, 0,0) \
X(gteq, 1, 0,0) \
...
@@ -95,7 +95,7 @@ typedef struct _func_stack {
...
@@ -95,7 +95,7 @@ typedef struct _func_stack {
X(pop_scope, 1, 0,0) \
X(pop_scope, 1, 0,0) \
X(postinc, 1, ARG_INT, 0) \
X(postinc, 1, ARG_INT, 0) \
X(preinc, 1, ARG_INT, 0) \
X(preinc, 1, ARG_INT, 0) \
X(push_except,1, ARG_
UINT
, ARG_BSTR) \
X(push_except,1, ARG_
ADDR
, ARG_BSTR) \
X(push_scope, 1, 0,0) \
X(push_scope, 1, 0,0) \
X(regexp, 1, ARG_STR, ARG_INT) \
X(regexp, 1, ARG_STR, ARG_INT) \
X(rshift, 1, 0,0) \
X(rshift, 1, 0,0) \
...
@@ -139,10 +139,12 @@ typedef enum {
...
@@ -139,10 +139,12 @@ typedef enum {
ARG_NONE
=
0
,
ARG_NONE
=
0
,
ARG_ADDR
,
ARG_ADDR
,
ARG_BSTR
,
ARG_BSTR
,
ARG_DBL
,
ARG_STAT
,
ARG_STAT
,
ARG_FUNC
,
ARG_FUNC
,
ARG_INT
,
ARG_INT
,
ARG_STR
ARG_STR
,
ARG_UINT
}
instr_arg_type_t
;
}
instr_arg_type_t
;
typedef
struct
{
typedef
struct
{
...
...
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