void Main$$TYPES() { Scriptable cap; Proto.Obj po; Proto.Str ps; Proto.Typedef pt; Object fxn; cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/cdoc/sg/Main.xs"); om.bind("xdc.tools.cdoc.sg.Main$$capsule", cap); po = (Proto.Obj) om.findStrict("xdc.tools.cdoc.sg.Main.Module", "xdc.tools.cdoc.sg"); po.init("xdc.tools.cdoc.sg.Main.Module", $$Module); po.addFld("$hostonly", $$T_Num, 1, "r"); fxn = Global.get(cap, "module$use"); if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$use", true); if (fxn != null) po.addFxn("module$use", $$T_Met, fxn); fxn = Global.get(cap, "module$meta$init"); if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$meta$init", true); if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn); fxn = Global.get(cap, "module$validate"); if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$validate", true); if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn); po.addFxn( "main", (Proto.Fxn) om.findStrict("xdc.tools.cdoc.sg.Main$$main", "xdc.tools.cdoc.sg"), Global.get(cap, "main")); }
void IRtscProductTemplate$$SINGLETONS() { Proto.Obj po; Value.Obj vo; vo = (Value.Obj) om.findStrict("xdc.tools.IRtscProductTemplate", "xdc.tools"); po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate.Module", "xdc.tools"); vo.init2(po, "xdc.tools.IRtscProductTemplate", $$DEFAULT, false); vo.bind("Module", po); vo.bind("$category", "Interface"); vo.bind("$capsule", $$UNDEF); vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools")); tdefs.clear(); proxies.clear(); inherits.clear(); vo.bind( "TemplateInfo", om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools")); tdefs.add(om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools")); vo.bind("$$tdefs", Global.newArray(tdefs.toArray())); vo.bind("$$proxies", Global.newArray(proxies.toArray())); vo.bind("$$inherits", Global.newArray(inherits.toArray())); ((Value.Arr) pkgV.getv("$interfaces")).add(vo); pkgV.bind("IRtscProductTemplate", vo); ((Value.Arr) pkgV.getv("$unitNames")).add("IRtscProductTemplate"); vo.seal(null); }
void Platform$$OBJECTS() { Proto.Obj po, spo; Value.Obj vo; po = (Proto.Obj) om.bind("ti.platforms.evm6424.Platform.Module", new Proto.Obj()); vo = (Value.Obj) om.bind( "ti.platforms.evm6424.Platform", new Value.Obj("ti.platforms.evm6424.Platform", po)); pkgV.bind("Platform", vo); // decls om.bind( "ti.platforms.evm6424.Platform.Board", om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.evm6424")); om.bind( "ti.platforms.evm6424.Platform.Memory", om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424")); // insts Object insP = om.bind("ti.platforms.evm6424.Platform.Instance", new Proto.Obj()); po = (Proto.Obj) om.bind("ti.platforms.evm6424.Platform$$Object", new Proto.Obj()); Object objP = om.bind("ti.platforms.evm6424.Platform.Object", new Proto.Str(po, true)); po = (Proto.Obj) om.bind("ti.platforms.evm6424.Platform$$Params", new Proto.Obj()); om.bind("ti.platforms.evm6424.Platform.Params", new Proto.Str(po, true)); }
void ICmd$$FUNCTIONS() { Proto.Fxn fxn; // fxn ICmd.main fxn = (Proto.Fxn) om.bind( "xdc.tools.ICmd$$main", new Proto.Fxn( om.findStrict("xdc.tools.ICmd.Module", "xdc.tools"), null, 0, -1, false)); // fxn ICmd.exec fxn = (Proto.Fxn) om.bind( "xdc.tools.ICmd$$exec", new Proto.Fxn( om.findStrict("xdc.tools.ICmd.Module", "xdc.tools"), null, 0, -1, false)); // fxn ICmd.run fxn = (Proto.Fxn) om.bind( "xdc.tools.ICmd$$run", new Proto.Fxn( om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools"), $$T_Obj, 2, 2, false)); fxn.addArg(0, "cmdr", (Proto) om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), $$UNDEF); fxn.addArg(1, "args", new Proto.Arr($$T_Str, false), $$DEFAULT); }
void Agent$$TYPES() { Scriptable cap; Proto.Obj po; Proto.Str ps; Proto.Typedef pt; Object fxn; cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/Agent.xs"); om.bind("ti.sysbios.rta.Agent$$capsule", cap); po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta"); po.init("ti.sysbios.rta.Agent.Module", $$Module); po.addFld("$hostonly", $$T_Num, 1, "r"); po.addFld("loadLogging", $$T_Bool, true, "wh"); po.addFld("loadLoggingRuntimeControl", $$T_Bool, true, "wh"); po.addFld("loadLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 512L, "wh"); po.addFld("loadLoggerBufferSection", $$T_Str, "[Default]", "wh"); po.addFld("mainLogging", $$T_Bool, true, "wh"); po.addFld("mainLoggingRuntimeControl", $$T_Bool, true, "wh"); po.addFld("mainLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh"); po.addFld("mainLoggerBufferSection", $$T_Str, "[Default]", "wh"); po.addFld("sysbiosHwiLogging", $$T_Bool, false, "wh"); po.addFld("sysbiosHwiLoggingRuntimeControl", $$T_Bool, false, "wh"); po.addFld("sysbiosSwiLogging", $$T_Bool, false, "wh"); po.addFld("sysbiosSwiLoggingRuntimeControl", $$T_Bool, false, "wh"); po.addFld("sysbiosTaskLogging", $$T_Bool, true, "wh"); po.addFld("sysbiosTaskLoggingRuntimeControl", $$T_Bool, true, "wh"); po.addFld("sysbiosLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 4096L, "wh"); po.addFld("sysbiosLoggerBufferSection", $$T_Str, "[Default]", "wh"); po.addFld("configureSystemLog", $$T_Bool, true, "wh"); po.addFld("numSystemRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh"); po.addFld("configureLoadLog", $$T_Bool, true, "wh"); po.addFld("numLoadRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh"); po.addFld("periodInMs", Proto.Elm.newCNum("(xdc_Int)"), 100L, "wh"); po.addFld("priority", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh"); po.addFld("agentStackSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh"); po.addFld("agentStackSection", $$T_Str, "[Default]", "wh"); po.addFld("transferBufferSize", Proto.Elm.newCNum("(xdc_Int)"), 85L, "wh"); po.addFld("transferBufferSection", $$T_Str, $$UNDEF, "wh"); po.addFld("addSupportLogger", $$T_Bool, true, "wh"); po.addFld("supportControl", $$T_Bool, true, "wh"); po.addFld( "transport", (Proto) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"), om.find("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY"), "wh"); po.addFld("dataStream", $$T_Str, "/rtdx0", "wh"); po.addFld("commandStream", $$T_Str, "/rtdx1", "wh"); po.addFld("responseStream", $$T_Str, "/rtdx1", "wh"); fxn = Global.get(cap, "module$use"); if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$use", true); if (fxn != null) po.addFxn("module$use", $$T_Met, fxn); fxn = Global.get(cap, "module$meta$init"); if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$meta$init", true); if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn); fxn = Global.get(cap, "module$validate"); if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$validate", true); if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("xdc.tools.cdoc.sg.Main", "xdc.tools.cdoc.sg")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("xdc.tools.cdoc.sg.Main")).bless(); ((Value.Arr) om.findStrict("$packages", "xdc.tools.cdoc.sg")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("google.targets.arm.Bionic", "google.targets.arm")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("google.targets.arm.Bionic")).bless(); ((Value.Arr) om.findStrict("$packages", "google.targets.arm")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("ti.platforms.evm6424.Platform", "ti.platforms.evm6424")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("ti.platforms.evm6424.Platform")).bless(); ((Value.Arr) om.findStrict("$packages", "ti.platforms.evm6424")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("ti.sdo.ipc.examples.Examples", "ti.sdo.ipc.examples")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("ti.sdo.ipc.examples.Examples")).bless(); ((Value.Arr) om.findStrict("$packages", "ti.sdo.ipc.examples")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC", "ti.sdo.codecs.mpeg4vdec.ce")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC")).bless(); ((Value.Arr) om.findStrict("$packages", "ti.sdo.codecs.mpeg4vdec.ce")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("ti.sdo.ce.universal.UNIVERSALConfig")).bless(); ((Value.Obj) om.getv("ti.sdo.ce.universal.IUNIVERSAL")).bless(); ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.universal")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta")); Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("ti.sysbios.rta.Agent")).bless(); ((Value.Obj) om.getv("ti.sysbios.rta.SupportLogger")).bless(); ((Value.Arr) om.findStrict("$packages", "ti.sysbios.rta")).add(pkgV); }
void G711DEC$$SINGLETONS() { Proto.Obj po; Value.Obj vo; vo = (Value.Obj) om.findStrict( "ti.sdo.ce.examples.codecs.g711.G711DEC", "ti.sdo.ce.examples.codecs.g711"); po = (Proto.Obj) om.findStrict( "ti.sdo.ce.examples.codecs.g711.G711DEC.Module", "ti.sdo.ce.examples.codecs.g711"); vo.init2(po, "ti.sdo.ce.examples.codecs.g711.G711DEC", $$DEFAULT, false); vo.bind("Module", po); vo.bind("$category", "Module"); vo.bind( "$capsule", om.findStrict( "ti.sdo.ce.examples.codecs.g711.G711DEC$$capsule", "ti.sdo.ce.examples.codecs.g711")); vo.bind( "$package", om.findStrict("ti.sdo.ce.examples.codecs.g711", "ti.sdo.ce.examples.codecs.g711")); tdefs.clear(); proxies.clear(); mcfgs.clear(); vo.bind("$$tdefs", Global.newArray(tdefs.toArray())); vo.bind("$$proxies", Global.newArray(proxies.toArray())); vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray())); ((Value.Arr) pkgV.getv("$modules")).add(vo); ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.examples.codecs.g711")).add(vo); vo.bind("$$instflag", 0); vo.bind("$$iobjflag", 1); vo.bind("$$sizeflag", 1); vo.bind("$$dlgflag", 0); vo.bind("$$iflag", 1); vo.bind("$$romcfgs", "|"); Proto.Str ps = (Proto.Str) vo.find("Module_State"); if (ps != null) vo.bind("$object", ps.newInstance()); vo.bind( "$$meta_iobj", om.has("ti.sdo.ce.examples.codecs.g711.G711DEC$$instance$static$init", null) ? 1 : 0); vo.bind("$$fxntab", Global.newArray()); vo.bind("$$logEvtCfgs", Global.newArray()); vo.bind("$$errorDescCfgs", Global.newArray()); vo.bind("$$assertDescCfgs", Global.newArray()); Value.Map atmap = (Value.Map) vo.getv("$attr"); atmap.seal("length"); pkgV.bind("G711DEC", vo); ((Value.Arr) pkgV.getv("$unitNames")).add("G711DEC"); }
void IProductView$$FUNCTIONS() { Proto.Fxn fxn; // fxn IProductView.getProductDescriptor fxn = (Proto.Fxn) om.bind( "xdc.tools.IProductView$$getProductDescriptor", new Proto.Fxn( om.findStrict("xdc.tools.IProductView.Module", "xdc.tools"), (Proto) om.findStrict("xdc.tools.IProductView.ProductElemDesc", "xdc.tools"), 0, 0, false)); }
void Cmdr$$CONSTS() { // module Cmdr om.bind( "xdc.tools.Cmdr.SHELL", xdc.services.intern.xsr.Enum.make( (Proto.Enm) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"), "xdc.tools.Cmdr.SHELL", 0)); om.bind( "xdc.tools.Cmdr.SCRIPT", xdc.services.intern.xsr.Enum.make( (Proto.Enm) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"), "xdc.tools.Cmdr.SCRIPT", 1)); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn("module$meta$init", (Scriptable) om.findStrict("xdc.tools.Cmdr", "xdc.tools")); Global.callFxn( "module$meta$init", (Scriptable) om.findStrict("xdc.tools.ResourceBundle", "xdc.tools")); Global.callFxn("init", pkgV); ((Value.Obj) om.getv("xdc.tools.Cmdr")).bless(); ((Value.Obj) om.getv("xdc.tools.ResourceBundle")).bless(); ((Value.Obj) om.getv("xdc.tools.ICmd")).bless(); ((Value.Obj) om.getv("xdc.tools.IProductView")).bless(); ((Value.Obj) om.getv("xdc.tools.IRtscProductTemplate")).bless(); ((Value.Arr) om.findStrict("$packages", "xdc.tools")).add(pkgV); }
void UNIVERSALConfig$$SINGLETONS() { Proto.Obj po; Value.Obj vo; vo = (Value.Obj) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal"); po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig.Module", "ti.sdo.ce.universal"); vo.init2(po, "ti.sdo.ce.universal.UNIVERSALConfig", $$DEFAULT, false); vo.bind("Module", po); vo.bind("$category", "Module"); vo.bind("$capsule", $$UNDEF); vo.bind("$package", om.findStrict("ti.sdo.ce.universal", "ti.sdo.ce.universal")); tdefs.clear(); proxies.clear(); mcfgs.clear(); icfgs.clear(); inherits.clear(); vo.bind("$$tdefs", Global.newArray(tdefs.toArray())); vo.bind("$$proxies", Global.newArray(proxies.toArray())); vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray())); vo.bind("$$icfgs", Global.newArray(icfgs.toArray())); vo.bind("$$inherits", Global.newArray(inherits.toArray())); ((Value.Arr) pkgV.getv("$modules")).add(vo); ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.universal")).add(vo); vo.bind("$$instflag", 0); vo.bind("$$iobjflag", 1); vo.bind("$$sizeflag", 1); vo.bind("$$dlgflag", 0); vo.bind("$$iflag", 0); vo.bind("$$romcfgs", "|"); vo.bind("$$nortsflag", 0); Proto.Str ps = (Proto.Str) vo.find("Module_State"); if (ps != null) vo.bind("$object", ps.newInstance()); vo.bind( "$$meta_iobj", om.has("ti.sdo.ce.universal.UNIVERSALConfig$$instance$static$init", null) ? 1 : 0); vo.bind("$$fxntab", Global.newArray()); vo.bind("$$logEvtCfgs", Global.newArray()); vo.bind("$$errorDescCfgs", Global.newArray()); vo.bind("$$assertDescCfgs", Global.newArray()); Value.Map atmap = (Value.Map) vo.getv("$attr"); atmap.setElem("", "./UNIVERSALConfig.xdt"); atmap.seal("length"); vo.bind("TEMPLATE$", "./UNIVERSALConfig.xdt"); pkgV.bind("UNIVERSALConfig", vo); ((Value.Arr) pkgV.getv("$unitNames")).add("UNIVERSALConfig"); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn("init", pkgV); ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.utils.rtcfg.osal")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn("init", pkgV); ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.examples.extensions")).add(pkgV); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn("init", pkgV); ((Value.Arr) om.findStrict("$packages", "ti.platforms.sdbTitan")).add(pkgV); }
void $$SINGLETONS() { pkgP.init( "xdc.services.mapping.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "xdc.services.mapping")); pkgP.bind("$capsule", $$UNDEF); pkgV.init2(pkgP, "xdc.services.mapping", Value.DEFAULT, false); pkgV.bind("$name", "xdc.services.mapping"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "xdc.services.mapping."); pkgV.bind("$vers", Global.newArray(1, 0, 0)); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['xdc.services.mapping'];\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("if ('xdc.services.mapping$$stat$base' in xdc.om) {\n"); sb.append("pkg.packageBase = xdc.om['xdc.services.mapping$$stat$base'];\n"); sb.append("pkg.packageRepository = xdc.om['xdc.services.mapping$$stat$root'];\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); Global.eval(sb.toString()); }
void $$INITIALIZATION() { Value.Obj vo; if (isCFG) {} // isCFG Global.callFxn("init", pkgV); ((Value.Arr) om.findStrict("$packages", "xdc.services.mapping")).add(pkgV); }
void $$SINGLETONS() { pkgP.init( "ti.sdo.ce.utils.rtcfg.osal.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.utils.rtcfg.osal")); pkgP.bind("$capsule", $$UNDEF); pkgV.init2(pkgP, "ti.sdo.ce.utils.rtcfg.osal", Value.DEFAULT, false); pkgV.bind("$name", "ti.sdo.ce.utils.rtcfg.osal"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "ti.sdo.ce.utils.rtcfg.osal."); pkgV.bind("$vers", Global.newArray("1, 0, 0")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['ti.sdo.ce.utils.rtcfg.osal'];\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"); 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 $$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 Agent$$SINGLETONS() { Proto.Obj po; Value.Obj vo; vo = (Value.Obj) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta"); po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta"); vo.init2(po, "ti.sysbios.rta.Agent", $$DEFAULT, false); vo.bind("Module", po); vo.bind("$category", "Module"); vo.bind("$capsule", om.findStrict("ti.sysbios.rta.Agent$$capsule", "ti.sysbios.rta")); vo.bind("$package", om.findStrict("ti.sysbios.rta", "ti.sysbios.rta")); tdefs.clear(); proxies.clear(); mcfgs.clear(); icfgs.clear(); inherits.clear(); vo.bind("Transport", om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta")); vo.bind( "Transport_RTDX", om.findStrict("ti.sysbios.rta.Agent.Transport_RTDX", "ti.sysbios.rta")); vo.bind( "Transport_STOP_MODE_ONLY", om.findStrict("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY", "ti.sysbios.rta")); vo.bind( "Transport_USER", om.findStrict("ti.sysbios.rta.Agent.Transport_USER", "ti.sysbios.rta")); vo.bind("$$tdefs", Global.newArray(tdefs.toArray())); vo.bind("$$proxies", Global.newArray(proxies.toArray())); vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray())); vo.bind("$$icfgs", Global.newArray(icfgs.toArray())); vo.bind("$$inherits", Global.newArray(inherits.toArray())); ((Value.Arr) pkgV.getv("$modules")).add(vo); ((Value.Arr) om.findStrict("$modules", "ti.sysbios.rta")).add(vo); vo.bind("$$instflag", 0); vo.bind("$$iobjflag", 1); vo.bind("$$sizeflag", 1); vo.bind("$$dlgflag", 0); vo.bind("$$iflag", 0); vo.bind("$$romcfgs", "|"); vo.bind("$$nortsflag", 0); Proto.Str ps = (Proto.Str) vo.find("Module_State"); if (ps != null) vo.bind("$object", ps.newInstance()); vo.bind("$$meta_iobj", om.has("ti.sysbios.rta.Agent$$instance$static$init", null) ? 1 : 0); vo.bind("$$fxntab", Global.newArray()); vo.bind("$$logEvtCfgs", Global.newArray()); vo.bind("$$errorDescCfgs", Global.newArray()); vo.bind("$$assertDescCfgs", Global.newArray()); Value.Map atmap = (Value.Map) vo.getv("$attr"); atmap.seal("length"); pkgV.bind("Agent", vo); ((Value.Arr) pkgV.getv("$unitNames")).add("Agent"); }
void IUNIVERSAL$$TYPES() { Scriptable cap; Proto.Obj po; Proto.Str ps; Proto.Typedef pt; Object fxn; po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL.Module", "ti.sdo.ce.universal"); po.init( "ti.sdo.ce.universal.IUNIVERSAL.Module", om.findStrict("ti.sdo.ce.ICodec.Module", "ti.sdo.ce.universal")); po.addFld("$hostonly", $$T_Num, 1, "r"); po.addFld("serverFxns", $$T_Str, "UNIVERSAL_SKEL", "wh"); po.addFld("stubFxns", $$T_Str, "UNIVERSAL_STUBS", "wh"); po.addFld("rpcProtocolVersion", Proto.Elm.newCNum("(xdc_Int)"), 1L, "rh"); po.addFld("codecClassConfigurable", $$T_Bool, true, "rh"); po.addFld( "manageInBufsCache", new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)), Global.newArray( new Object[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }), "wh"); po.addFld( "manageInOutBufsCache", new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)), Global.newArray( new Object[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }), "wh"); po.addFld( "manageOutBufsCache", new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)), Global.newArray( new Object[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }), "wh"); }
void SunSparc7$$SINGLETONS() { Proto.Obj po; Value.Obj vo; vo = (Value.Obj) om.findStrict("host.platforms.SUN.SunSparc7", "host.platforms.SUN"); po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"); vo.init2(po, "host.platforms.SUN.SunSparc7", $$DEFAULT, false); vo.bind("Module", po); vo.bind("$category", "Module"); vo.bind( "$capsule", om.findStrict("host.platforms.SUN.SunSparc7$$capsule", "host.platforms.SUN")); vo.bind( "Instance", om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN")); vo.bind("Params", om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN")); vo.bind( "PARAMS", ((Proto.Str) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN")) .newInstance()); vo.bind("$package", om.findStrict("host.platforms.SUN", "host.platforms.SUN")); tdefs.clear(); proxies.clear(); mcfgs.clear(); vo.bind("$$tdefs", Global.newArray(tdefs.toArray())); vo.bind("$$proxies", Global.newArray(proxies.toArray())); vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray())); ((Value.Arr) pkgV.getv("$modules")).add(vo); ((Value.Arr) om.findStrict("$modules", "host.platforms.SUN")).add(vo); vo.bind("$$instflag", 1); vo.bind("$$iobjflag", 1); vo.bind("$$sizeflag", 1); vo.bind("$$dlgflag", 0); vo.bind("$$iflag", 1); vo.bind("$$romcfgs", "|"); Proto.Str ps = (Proto.Str) vo.find("Module_State"); if (ps != null) vo.bind("$object", ps.newInstance()); vo.bind( "$$meta_iobj", om.has("host.platforms.SUN.SunSparc7$$instance$static$init", null) ? 1 : 0); vo.bind("$$fxntab", Global.newArray()); vo.bind("$$logEvtCfgs", Global.newArray()); vo.bind("$$errorDescCfgs", Global.newArray()); vo.bind("$$assertDescCfgs", Global.newArray()); Value.Map atmap = (Value.Map) vo.getv("$attr"); atmap.seal("length"); vo.bind("Object", om.findStrict("host.platforms.SUN.SunSparc7.Object", "host.platforms.SUN")); pkgV.bind("SunSparc7", vo); ((Value.Arr) pkgV.getv("$unitNames")).add("SunSparc7"); }
void ResourceBundle$$FUNCTIONS() { Proto.Fxn fxn; // fxn ResourceBundle.getResourceBundle fxn = (Proto.Fxn) om.bind( "xdc.tools.ResourceBundle$$getResourceBundle", new Proto.Fxn( om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"), (Proto) om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"), 2, 2, false)); fxn.addArg(0, "pkgName", $$T_Str, $$UNDEF); fxn.addArg(1, "lang", $$T_Str, $$UNDEF); // fxn ResourceBundle.getString fxn = (Proto.Fxn) om.bind( "xdc.tools.ResourceBundle$$getString", new Proto.Fxn( om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"), $$T_Str, 1, 1, false)); fxn.addArg(0, "key", $$T_Str, $$UNDEF); // fxn ResourceBundle.formatMessage fxn = (Proto.Fxn) om.bind( "xdc.tools.ResourceBundle$$formatMessage", new Proto.Fxn( om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"), $$T_Str, 2, 2, false)); fxn.addArg(0, "key", $$T_Str, $$UNDEF); fxn.addArg(1, "args", $$T_Obj, $$UNDEF); }
void Agent$$CONSTS() { // module Agent om.bind( "ti.sysbios.rta.Agent.Transport_RTDX", xdc.services.intern.xsr.Enum.make( (Proto.Enm) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"), "ti.sysbios.rta.Agent.Transport_RTDX", 0)); om.bind( "ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY", xdc.services.intern.xsr.Enum.make( (Proto.Enm) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"), "ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY", 1)); om.bind( "ti.sysbios.rta.Agent.Transport_USER", xdc.services.intern.xsr.Enum.make( (Proto.Enm) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"), "ti.sysbios.rta.Agent.Transport_USER", 2)); }