X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fopcodes.h;h=b95ed07c9a84a87b0060bd249e808ebf0209ee41;hb=62a83d162b254d91da418cee25f5b87b067a3f92;hp=ef9aa6df8f1b123916b7efb2fc7c0f158bb1c207;hpb=2daadb492b21a94a54c73b0d524b636d3e9da009;p=swftools.git diff --git a/lib/as3/opcodes.h b/lib/as3/opcodes.h index ef9aa6d..b95ed07 100644 --- a/lib/as3/opcodes.h +++ b/lib/as3/opcodes.h @@ -33,7 +33,7 @@ code_t* abc_bitxor(code_t*prev); code_t* abc_call(code_t*prev, int v); #define call(method,v) (method->code = abc_call(method->code,v)) #define OPCODE_CALL 0x41 -code_t* abc_callmethod(code_t*prev, abc_method_body_t* m, int v); +code_t* abc_callmethod(code_t*prev, abc_method_t* m, int v); #define callmethod(method,m,v) (method->code = abc_callmethod(method->code,m,v)) #define OPCODE_CALLMETHOD 0x43 code_t* abc_callproplex(code_t*prev, char* name, int v); @@ -54,7 +54,7 @@ code_t* abc_callpropvoid(code_t*prev, char* name, int v); code_t* abc_callpropvoid2(code_t*prev, multiname_t* name, int v); #define callpropvoid2(method,name,v) (method->code = abc_callpropvoid2(method->code,name,v)) #define OPCODE_CALLPROPVOID2 0x4f -code_t* abc_callstatic(code_t*prev, abc_method_t* m, int v); +code_t* abc_callstatic(code_t*prev, abc_method_body_t* m, int v); #define callstatic(method,m,v) (method->code = abc_callstatic(method->code,m,v)) #define OPCODE_CALLSTATIC 0x44 code_t* abc_callsuper(code_t*prev, char* name, int v); @@ -117,9 +117,12 @@ code_t* abc_convert_s(code_t*prev); code_t* abc_debug(code_t*prev, void* debuginfo); #define debug(method,debuginfo) (method->code = abc_debug(method->code,debuginfo)) #define OPCODE_DEBUG 0xef -code_t* abc_debugfile(code_t*prev, char* s); -#define debugfile(method,s) (method->code = abc_debugfile(method->code,s)) +code_t* abc_debugfile(code_t*prev, char* name); +#define debugfile(method,name) (method->code = abc_debugfile(method->code,name)) #define OPCODE_DEBUGFILE 0xf1 +code_t* abc_debugfile2(code_t*prev, string_t* s); +#define debugfile2(method,s) (method->code = abc_debugfile2(method->code,s)) +#define OPCODE_DEBUGFILE2 0xf1 code_t* abc_debugline(code_t*prev, int v); #define debugline(method,v) (method->code = abc_debugline(method->code,v)) #define OPCODE_DEBUGLINE 0xf0 @@ -147,9 +150,12 @@ code_t* abc_divide(code_t*prev); code_t* abc_dup(code_t*prev); #define dup(method) (method->code = abc_dup(method->code)) #define OPCODE_DUP 0x2a -code_t* abc_dxns(code_t*prev, char* s); -#define dxns(method,s) (method->code = abc_dxns(method->code,s)) +code_t* abc_dxns(code_t*prev, char* name); +#define dxns(method,name) (method->code = abc_dxns(method->code,name)) #define OPCODE_DXNS 0x06 +code_t* abc_dxns2(code_t*prev, string_t* s); +#define dxns2(method,s) (method->code = abc_dxns2(method->code,s)) +#define OPCODE_DXNS2 0x06 code_t* abc_dxnslate(code_t*prev); #define dxnslate(method) (method->code = abc_dxnslate(method->code)) #define OPCODE_DXNSLATE 0x07 @@ -360,7 +366,7 @@ code_t* abc_newcatch(code_t*prev, int v); code_t* abc_newclass(code_t*prev, abc_class_t* m); #define newclass(method,m) (method->code = abc_newclass(method->code,m)) #define OPCODE_NEWCLASS 0x58 -code_t* abc_newfunction(code_t*prev, abc_method_body_t* m); +code_t* abc_newfunction(code_t*prev, abc_method_t* m); #define newfunction(method,m) (method->code = abc_newfunction(method->code,m)) #define OPCODE_NEWFUNCTION 0x40 code_t* abc_newobject(code_t*prev, int v); @@ -396,8 +402,8 @@ code_t* abc_pushfalse(code_t*prev); code_t* abc_pushint(code_t*prev, int i); #define pushint(method,i) (method->code = abc_pushint(method->code,i)) #define OPCODE_PUSHINT 0x2d -code_t* abc_pushnamespace(code_t*prev, int v); -#define pushnamespace(method,v) (method->code = abc_pushnamespace(method->code,v)) +code_t* abc_pushnamespace(code_t*prev, namespace_t* ns); +#define pushnamespace(method,ns) (method->code = abc_pushnamespace(method->code,ns)) #define OPCODE_PUSHNAMESPACE 0x31 code_t* abc_pushnan(code_t*prev); #define pushnan(method) (method->code = abc_pushnan(method->code)) @@ -411,9 +417,12 @@ code_t* abc_pushscope(code_t*prev); code_t* abc_pushshort(code_t*prev, int v); #define pushshort(method,v) (method->code = abc_pushshort(method->code,v)) #define OPCODE_PUSHSHORT 0x25 -code_t* abc_pushstring(code_t*prev, char* s); -#define pushstring(method,s) (method->code = abc_pushstring(method->code,s)) +code_t* abc_pushstring(code_t*prev, char* name); +#define pushstring(method,name) (method->code = abc_pushstring(method->code,name)) #define OPCODE_PUSHSTRING 0x2c +code_t* abc_pushstring2(code_t*prev, string_t* s); +#define pushstring2(method,s) (method->code = abc_pushstring2(method->code,s)) +#define OPCODE_PUSHSTRING2 0x2c code_t* abc_pushtrue(code_t*prev); #define pushtrue(method) (method->code = abc_pushtrue(method->code)) #define OPCODE_PUSHTRUE 0x26 @@ -492,7 +501,31 @@ code_t* abc_urshift(code_t*prev); code_t* abc_applytype(code_t*prev, int v); #define applytype(method,v) (method->code = abc_applytype(method->code,v)) #define OPCODE_APPLYTYPE 0x53 -code_t* abc___break__(code_t*prev); -#define __break__(method) (method->code = abc___break__(method->code)) +code_t* abc___pushpackage__(code_t*prev, char* name); +#define __pushpackage__(method,name) (method->code = abc___pushpackage__(method->code,name)) +#define OPCODE___PUSHPACKAGE__ 0xfb +code_t* abc___pushpackage__2(code_t*prev, string_t* s); +#define __pushpackage__2(method,s) (method->code = abc___pushpackage__2(method->code,s)) +#define OPCODE___PUSHPACKAGE__2 0xfb +code_t* abc___rethrow__(code_t*prev); +#define __rethrow__(method) (method->code = abc___rethrow__(method->code)) +#define OPCODE___RETHROW__ 0xfc +code_t* abc___fallthrough__(code_t*prev, char* name); +#define __fallthrough__(method,name) (method->code = abc___fallthrough__(method->code,name)) +#define OPCODE___FALLTHROUGH__ 0xfd +code_t* abc___fallthrough__2(code_t*prev, string_t* s); +#define __fallthrough__2(method,s) (method->code = abc___fallthrough__2(method->code,s)) +#define OPCODE___FALLTHROUGH__2 0xfd +code_t* abc___continue__(code_t*prev, char* name); +#define __continue__(method,name) (method->code = abc___continue__(method->code,name)) +#define OPCODE___CONTINUE__ 0xfe +code_t* abc___continue__2(code_t*prev, string_t* s); +#define __continue__2(method,s) (method->code = abc___continue__2(method->code,s)) +#define OPCODE___CONTINUE__2 0xfe +code_t* abc___break__(code_t*prev, char* name); +#define __break__(method,name) (method->code = abc___break__(method->code,name)) #define OPCODE___BREAK__ 0xff +code_t* abc___break__2(code_t*prev, string_t* s); +#define __break__2(method,s) (method->code = abc___break__2(method->code,s)) +#define OPCODE___BREAK__2 0xff #endif