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
400435db
Commit
400435db
authored
Mar 25, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Store entry scope chain in call_frame_t.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
49ecfa95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
engine.c
dlls/jscript/engine.c
+3
-5
engine.h
dlls/jscript/engine.h
+1
-0
No files found.
dlls/jscript/engine.c
View file @
400435db
...
...
@@ -2466,7 +2466,6 @@ static HRESULT unwind_exception(exec_ctx_t *ctx)
static
HRESULT
enter_bytecode
(
script_ctx_t
*
ctx
,
function_code_t
*
func
,
jsval_t
*
ret
)
{
exec_ctx_t
*
exec_ctx
=
ctx
->
call_ctx
->
exec_ctx
;
scope_chain_t
*
prev_scope
;
call_frame_t
*
frame
;
jsop_t
op
;
HRESULT
hres
=
S_OK
;
...
...
@@ -2474,7 +2473,6 @@ static HRESULT enter_bytecode(script_ctx_t *ctx, function_code_t *func, jsval_t
TRACE
(
"
\n
"
);
frame
=
ctx
->
call_ctx
;
prev_scope
=
frame
->
scope
;
while
(
frame
->
ip
!=
-
1
)
{
op
=
frame
->
bytecode
->
instrs
[
frame
->
ip
].
op
;
...
...
@@ -2496,13 +2494,13 @@ static HRESULT enter_bytecode(script_ctx_t *ctx, function_code_t *func, jsval_t
assert
(
ctx
->
call_ctx
==
frame
);
if
(
FAILED
(
hres
))
{
while
(
frame
->
scope
!=
prev
_scope
)
while
(
frame
->
scope
!=
frame
->
base
_scope
)
scope_pop
(
&
frame
->
scope
);
stack_popn
(
exec_ctx
,
exec_ctx
->
top
-
frame
->
stack_base
);
}
assert
(
exec_ctx
->
top
==
frame
->
stack_base
);
assert
(
frame
->
scope
==
prev
_scope
);
assert
(
frame
->
scope
==
frame
->
base
_scope
);
ctx
->
call_ctx
=
frame
->
prev_frame
;
release_call_frame
(
frame
);
...
...
@@ -2565,7 +2563,7 @@ static HRESULT setup_call_frame(exec_ctx_t *ctx, bytecode_t *bytecode, function_
frame
->
stack_base
=
ctx
->
top
;
if
(
scope
)
frame
->
scope
=
scope_addref
(
scope
);
frame
->
base_scope
=
frame
->
scope
=
scope_addref
(
scope
);
frame
->
exec_ctx
=
ctx
;
...
...
dlls/jscript/engine.h
View file @
400435db
...
...
@@ -196,6 +196,7 @@ typedef struct _call_frame_t {
except_frame_t
*
except_frame
;
unsigned
stack_base
;
scope_chain_t
*
scope
;
scope_chain_t
*
base_scope
;
bytecode_t
*
bytecode
;
function_code_t
*
function
;
...
...
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