Skip to content

Commit d080cb7

Browse files
committed
Add helper functions for building newly usable instructions
1 parent a82487e commit d080cb7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

AS3/src/com/cff/anebe/ir/ASInstruction.as

+20
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ package com.cff.anebe.ir
299299
{
300300
return new ASInstruction(OP_raw, [v]);
301301
}
302+
public static function Bkpt():ASInstruction
303+
{
304+
return new ASInstruction(OP_bkpt);
305+
}
302306
public static function Nop():ASInstruction
303307
{
304308
return new ASInstruction(OP_nop);
@@ -763,6 +767,14 @@ package com.cff.anebe.ir
763767
{
764768
return new ASInstruction(OP_astypelate);
765769
}
770+
public static function Coerce_u():ASInstruction
771+
{
772+
return new ASInstruction(OP_coerce_u);
773+
}
774+
public static function Coerce_o():ASInstruction
775+
{
776+
return new ASInstruction(OP_coerce_o);
777+
}
766778
public static function Negate():ASInstruction
767779
{
768780
return new ASInstruction(OP_negate);
@@ -955,5 +967,13 @@ package com.cff.anebe.ir
955967
{
956968
return new ASInstruction(OP_debugfile, [filename]);
957969
}
970+
public static function BkptLine(lineNum:uint):ASInstruction
971+
{
972+
return new ASInstruction(OP_bkptline, [lineNum]);
973+
}
974+
public static function Timestamp():ASInstruction
975+
{
976+
return new ASInstruction(OP_timestamp);
977+
}
958978
}
959979
}

0 commit comments

Comments
 (0)