X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fopcodes.h;h=6bc38b8423c8ad792b70e24b753d4c2796de4c3f;hb=0fd17f47ee30d90181e51f30fc17a6c31646137e;hp=606df950a7fc3f2c4c0423d9b75704add038c683;hpb=c734d045fc258f2596e2fb4fd9bd5bd9275fc7b9;p=swftools.git diff --git a/lib/as3/opcodes.h b/lib/as3/opcodes.h index 606df95..6bc38b8 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); @@ -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 @@ -489,13 +498,34 @@ code_t* abc_typeof(code_t*prev); code_t* abc_urshift(code_t*prev); #define urshift(method) (method->code = abc_urshift(method->code)) #define OPCODE_URSHIFT 0xa7 -code_t* abc_xxx1(code_t*prev); -#define xxx1(method) (method->code = abc_xxx1(method->code)) -#define OPCODE_XXX1 0x53 -code_t* abc_xxx2(code_t*prev); -#define xxx2(method) (method->code = abc_xxx2(method->code)) -#define OPCODE_XXX2 0x01 -code_t* abc___break__(code_t*prev); -#define __break__(method) (method->code = abc___break__(method->code)) +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___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