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
3f4f9f0f
Commit
3f4f9f0f
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: Rename throw opcode to throw_ref.
parent
661241a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
compile.c
dlls/jscript/compile.c
+3
-3
engine.c
dlls/jscript/engine.c
+1
-1
engine.h
dlls/jscript/engine.h
+1
-1
No files found.
dlls/jscript/compile.c
View file @
3f4f9f0f
...
...
@@ -322,7 +322,7 @@ static HRESULT compile_increment_expression(compiler_ctx_t *ctx, unary_expressio
if
(
FAILED
(
hres
))
return
hres
;
return
push_instr_uint
(
ctx
,
OP_throw
,
JS_E_ILLEGAL_ASSIGN
);
return
push_instr_uint
(
ctx
,
OP_throw
_ref
,
JS_E_ILLEGAL_ASSIGN
);
}
hres
=
compile_memberid_expression
(
ctx
,
expr
->
expression
,
fdexNameEnsure
);
...
...
@@ -545,7 +545,7 @@ static HRESULT compile_assign_expression(compiler_ctx_t *ctx, binary_expression_
if
(
op
!=
OP_LAST
&&
push_instr
(
ctx
,
op
)
==
-
1
)
return
E_OUTOFMEMORY
;
return
push_instr_uint
(
ctx
,
OP_throw
,
JS_E_ILLEGAL_ASSIGN
);
return
push_instr_uint
(
ctx
,
OP_throw
_ref
,
JS_E_ILLEGAL_ASSIGN
);
}
hres
=
compile_memberid_expression
(
ctx
,
expr
->
expression1
,
fdexNameEnsure
);
...
...
@@ -1123,7 +1123,7 @@ static HRESULT compile_forin_statement(compiler_ctx_t *ctx, forin_statement_t *s
if
(
FAILED
(
hres
))
return
hres
;
}
else
{
hres
=
push_instr_uint
(
ctx
,
OP_throw
,
JS_E_ILLEGAL_ASSIGN
);
hres
=
push_instr_uint
(
ctx
,
OP_throw
_ref
,
JS_E_ILLEGAL_ASSIGN
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/engine.c
View file @
3f4f9f0f
...
...
@@ -1250,7 +1250,7 @@ HRESULT throw_statement_eval(script_ctx_t *ctx, statement_t *_stat, return_type_
return
DISP_E_EXCEPTION
;
}
static
HRESULT
interp_throw
(
exec_ctx_t
*
ctx
)
static
HRESULT
interp_throw
_ref
(
exec_ctx_t
*
ctx
)
{
const
HRESULT
arg
=
ctx
->
parser
->
code
->
instrs
[
ctx
->
ip
].
arg1
.
uint
;
...
...
dlls/jscript/engine.h
View file @
3f4f9f0f
...
...
@@ -99,7 +99,7 @@ typedef struct _func_stack {
X(rshift2, 1, 0,0) \
X(str, 1, ARG_STR, 0) \
X(this, 1, 0,0) \
X(throw
,
0, ARG_UINT, 0) \
X(throw
_ref,
0, ARG_UINT, 0) \
X(throw_type, 0, ARG_UINT, ARG_STR) \
X(tonum, 1, 0,0) \
X(tree, 1, ARG_STAT, 0) \
...
...
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