allow trait specification in pcode import

This commit is contained in:
honfika@gmail.com
2015-12-15 12:46:08 +01:00
parent d56c1d931e
commit c563a7449b
9 changed files with 165 additions and 50 deletions

View File

@@ -124,7 +124,7 @@ public class ActionScript3ExecuteTest {
private int addMethod(int classId, String name, boolean isStatic, AVM2Code code) {
TraitMethodGetterSetter methodTrait = abc.addMethod(classId, name, isStatic);
MethodInfo methodInfo = abc.method_info.get(methodTrait.method_info);
MethodBody methodBody = methodInfo.getBody();
MethodBody methodBody = abc.findBody(methodInfo);
methodBody.max_stack = 10;
methodBody.max_regs = 10;
methodBody.init_scope_depth = 3;