AS3 p-code editing - metadata read/write support

This commit is contained in:
Jindra Petřík
2016-08-28 17:01:50 +02:00
parent c2e850ad49
commit da859ddb41
16 changed files with 3745 additions and 3563 deletions

View File

@@ -88,7 +88,7 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
+ "returnvoid\r\n";
MethodBody b = new MethodBody(getABC(), new Traits(), new byte[0], new ABCException[0]);
AVM2Code code = ASM3Parser.parse(new StringReader(str), getABC().constants, null, b, new MethodInfo());
AVM2Code code = ASM3Parser.parse(getABC(), new StringReader(str), null, b, new MethodInfo());
b.setCode(code);
return b;
}
@@ -152,7 +152,7 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
+ "pushbyte 1\r\n";
MethodBody b = new MethodBody(getABC(), new Traits(), new byte[0], new ABCException[0]);
AVM2Code code = ASM3Parser.parse(new StringReader(str), getABC().constants, null, b, new MethodInfo());
AVM2Code code = ASM3Parser.parse(getABC(), new StringReader(str), null, b, new MethodInfo());
long to = code.getEndOffset();
Map<Long, Integer> expected = new HashMap<>();