mirror of
https://github.com/reactos/wine.git
synced 2025-03-02 01:35:31 +00:00
jscript: Rename throw opcode to throw_ref.
This commit is contained in:
parent
661241a392
commit
3f4f9f0f40
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user