numerous small bugfixes
[swftools.git] / lib / as3 / opcodes.h
index 85035be..6bc38b8 100644 (file)
@@ -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
@@ -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