Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ;
- import format.abc.Data;
- class Void_abc
- {
- public static function write(ctx:format.abc.Context, inits:Hash<Index<MethodType>>,classes:Hash<Index<ClassDef>>, localFunctions:Hash<Index<MethodType>>):Void
- {
- //
- // Void
- //
- var f = null;
- var cl = ctx.beginClass('Void', false);
- {
- classes.set("Void", ctx.getClass(cl));
- cl.isFinal = true;
- cl.isInterface = false;
- cl.isSealed = true;
- //cl.namespace = ctx._namespace(NProtected(ctx.string('Void')));
- cl.superclass = ctx.type('Object');
- ctx.addClassSuper('Object');
- ctx.defineField('tag', ctx.type('String'), false, null, false, ctx._namespace(NPublic(ctx.string(""))),0);
- ctx.defineField('index', ctx.type('int'), false, null, false, ctx._namespace(NPublic(ctx.string(""))),0);
- ctx.defineField('params', ctx.type('Array'), false, null, false, ctx._namespace(NPublic(ctx.string(""))),0);
- ctx.defineField('__enum__', ctx.type('Boolean'), false, null, true, ctx._namespace(NPublic(ctx.string(""))),0);
- ctx.defineField('__isenum', ctx.type('Boolean'), true, null, true, ctx._namespace(NPublic(ctx.string(""))),2);
- ctx.defineField('__constructs__', ctx.type('*'), true, null, false, ctx._namespace(NPublic(ctx.string(""))),1);
- f=ctx.beginMethod('Void', [ctx.type('String'),ctx.type('int'),ctx.type('*')], ctx.type('void'), false, false, false, true, KNormal, {native:false, variableArgs:false, argumentsDefined : false, usesDXNS:false, newBlock:false, unused:false, debugName:ctx.string('""'), defaultParameters:null, paramNames:null}, ctx._namespace(NPublic(ctx.string(""))));
- {
- cl.constructor = f.type;
- ctx.op(OThis);
- ctx.op(OScope);
- ctx.op(ODebugFile(ctx.string('C:/Program Files/Motion-Twin/haxe/rev/haxe_r3911/std/StdTypes.hx')));
- //extern enum Void { }
- ctx.op(ODebugLine(31));
- ctx.op(ODebugReg(ctx.string('tag'),0,31));
- ctx.op(ODebugReg(ctx.string('index'),1,31));
- ctx.op(ODebugReg(ctx.string('params'),2,31));
- ctx.op(OFindProp(ctx.type('tag')));
- ctx.op(OReg(1));
- ctx.op(OInitProp(ctx.type('tag')));
- ctx.op(OFindProp(ctx.type('index')));
- ctx.op(OReg(2));
- ctx.op(OInitProp(ctx.type('index')));
- ctx.op(OFindProp(ctx.type('params')));
- ctx.op(OReg(3));
- ctx.op(OInitProp(ctx.type('params')));
- ctx.op(ORetVoid);
- f.maxStack = 2;
- f.maxScope = 1;
- //f.nRegs = 4;
- }
- ctx.beginFunction([], ctx.type('void'), {native:false, variableArgs:false, argumentsDefined : false, usesDXNS:false, newBlock:false, unused:false, debugName:ctx.string('""'), defaultParameters:null, paramNames:null});
- {
- f = ctx.curFunction.f;
- cl.statics = f.type;
- ctx.op(ODebugFile(ctx.string('C:/Program Files/Motion-Twin/haxe/rev/haxe_r3911/std/StdTypes.hx')));
- //extern enum Void { }
- ctx.op(ODebugLine(31));
- ctx.op(ORetVoid);
- f.maxStack = 0;
- f.maxScope = 0;
- //f.nRegs = 1;
- }
- f=ctx.beginMethod('toString', [], ctx.type('String'), false, false, true, false, KNormal, {native:false, variableArgs:false, argumentsDefined : false, usesDXNS:false, newBlock:false, unused:false, debugName:ctx.string('""'), defaultParameters:null, paramNames:null}, ctx._namespace(NPublic(ctx.string(""))));
- {
- ctx.op(ODebugFile(ctx.string('C:/Program Files/Motion-Twin/haxe/rev/haxe_r3911/std/StdTypes.hx')));
- //extern enum Void { }
- ctx.op(ODebugLine(31));
- ctx.op(OGetLex(ctx.type('flash.Boot')));
- ctx.op(OThis);
- ctx.op(OCallProperty(ctx.type('enum_to_string'),1));
- ctx.op(ORet);
- f.maxStack = 2;
- f.maxScope = 0;
- //f.nRegs = 1;
- }
- ctx.beginFunction([], ctx.type('void'),{native:false, variableArgs:false, argumentsDefined : false, usesDXNS:false, newBlock:false, unused:false, debugName:ctx.string('""'), defaultParameters:null, paramNames:null});
- {
- f = ctx.curFunction.f;
- inits.set('Void', f.type);
- ctx.op(OThis);
- ctx.op(OScope);
- ctx.op(ODebugFile(ctx.string('C:/Program Files/Motion-Twin/haxe/rev/haxe_r3911/std/StdTypes.hx')));
- //extern enum Void { }
- ctx.op(ODebugLine(31));
- ctx.op(OGetGlobalScope);
- ctx.op(OGetLex(ctx.type('Object')));
- ctx.op(OScope);
- ctx.op(OGetLex(ctx.type('Object')));
- ctx.op(OClassDef(classes.get('Void')));
- ctx.op(OPopScope);
- ctx.op(ODup);
- ctx.allocRegister();
- ctx.op(OSetReg(1));
- ctx.op(OInitProp(ctx.type('Void')));
- ctx.op(OReg(1));
- ctx.op(OArray(0));
- ctx.op(OSetProp(ctx.type('__constructs__')));
- ctx.op(ORetVoid);
- f.maxStack = 3;
- f.maxScope = 2;
- //f.nRegs = 2;
- }
- ctx.getData().inits[(ctx.getData().inits.length - 1)].method = inits.get('Void');
- ctx.endClass(false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement