void $$SINGLETONS() { pkgP.init( "host.platforms.SUN.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "host.platforms.SUN")); Scriptable cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/package.xs"); om.bind("xdc.IPackage$$capsule", cap); Object fxn; fxn = Global.get(cap, "init"); if (fxn != null) pkgP.addFxn( "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "close"); if (fxn != null) pkgP.addFxn( "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "validate"); if (fxn != null) pkgP.addFxn( "validate", (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "exit"); if (fxn != null) pkgP.addFxn( "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "getLibs"); if (fxn != null) pkgP.addFxn( "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "getSects"); if (fxn != null) pkgP.addFxn( "getSects", (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "host.platforms.SUN"), fxn); pkgP.bind("$capsule", cap); pkgV.init2(pkgP, "host.platforms.SUN", Value.DEFAULT, false); pkgV.bind("$name", "host.platforms.SUN"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "host.platforms.SUN."); pkgV.bind("$vers", Global.newArray("1, 0, 0, 1")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); imports.add(Global.newArray("xdc.platform", Global.newArray())); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['host.platforms.SUN'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void $$SINGLETONS() { pkgP.init( "ti.platforms.evm6424.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.platforms.evm6424")); pkgP.bind("$capsule", $$UNDEF); pkgV.init2(pkgP, "ti.platforms.evm6424", Value.DEFAULT, false); pkgV.bind("$name", "ti.platforms.evm6424"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "ti.platforms.evm6424."); pkgV.bind("$vers", Global.newArray("1, 0, 0, 0")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); imports.add(Global.newArray("ti.catalog.c6000", Global.newArray())); imports.add(Global.newArray("xdc.platform", Global.newArray(1, 0, 1))); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['ti.platforms.evm6424'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void SunSparc7$$CREATES() { Proto.Fxn fxn; StringBuilder sb; fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.SunSparc7$$create", new Proto.Fxn( om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"), om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"), 2, 1, false)); fxn.addArg(0, "revision", $$T_Str, $$UNDEF); fxn.addArg( 1, "__params", (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append("host$platforms$SUN$SunSparc7$$create = function( revision, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n"); sb.append("var __inst = xdc.om['host.platforms.SUN.SunSparc7.Instance'].$$make();\n"); sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n"); sb.append("__inst.$$bind('$index', __mod.$instances.length);\n"); sb.append("__inst.$$bind('$category', 'Instance');\n"); sb.append("__inst.$$bind('$args', {revision:revision});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$instances.$add(__inst);\n"); sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n"); sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n"); sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n"); sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n"); sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("var save = xdc.om.$curpkg;\n"); sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n"); sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [revision]);\n"); sb.append("xdc.om.$$bind('$curpkg', save);\n"); sb.append("__inst.$$bless();\n"); sb.append("return __inst;\n"); sb.append("}\n"); Global.eval(sb.toString()); fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.SunSparc7$$construct", new Proto.Fxn( om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"), null, 3, 1, false)); fxn.addArg( 0, "__obj", (Proto) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN"), null); fxn.addArg(1, "revision", $$T_Str, $$UNDEF); fxn.addArg( 2, "__params", (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append( "host$platforms$SUN$SunSparc7$$construct = function( __obj, revision, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n"); sb.append("var __inst = __obj;\n"); sb.append("__inst.$$bind('$args', {revision:revision});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$objects.$add(__inst);\n"); sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n"); sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n"); sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n"); sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n"); sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("__inst.$$bless();\n"); sb.append("return null;\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void Platform$$CREATES() { Proto.Fxn fxn; StringBuilder sb; fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.Platform$$create", new Proto.Fxn( om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"), om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"), 3, 2, false)); fxn.addArg(0, "name", $$T_Str, $$UNDEF); fxn.addArg(1, "args", $$T_Obj, $$UNDEF); fxn.addArg( 2, "__params", (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append("host$platforms$SUN$Platform$$create = function( name, args, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n"); sb.append("var __inst = xdc.om['host.platforms.SUN.Platform.Instance'].$$make();\n"); sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n"); sb.append("__inst.$$bind('$index', __mod.$instances.length);\n"); sb.append("__inst.$$bind('$category', 'Instance');\n"); sb.append("__inst.$$bind('$args', {name:name, args:args});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$instances.$add(__inst);\n"); sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n"); sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n"); sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n"); sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n"); sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n"); sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n"); sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n"); sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("var save = xdc.om.$curpkg;\n"); sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n"); sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [name, args]);\n"); sb.append("xdc.om.$$bind('$curpkg', save);\n"); sb.append("__inst.$$bless();\n"); sb.append("return __inst;\n"); sb.append("}\n"); Global.eval(sb.toString()); fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.Platform$$construct", new Proto.Fxn( om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"), null, 4, 2, false)); fxn.addArg( 0, "__obj", (Proto) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN"), null); fxn.addArg(1, "name", $$T_Str, $$UNDEF); fxn.addArg(2, "args", $$T_Obj, $$UNDEF); fxn.addArg( 3, "__params", (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append( "host$platforms$SUN$Platform$$construct = function( __obj, name, args, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n"); sb.append("var __inst = __obj;\n"); sb.append("__inst.$$bind('$args', {name:name, args:args});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$objects.$add(__inst);\n"); sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n"); sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n"); sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n"); sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n"); sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n"); sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n"); sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n"); sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("__inst.$$bless();\n"); sb.append("return null;\n"); sb.append("}\n"); Global.eval(sb.toString()); }