Examples of bind_key_boxed()


Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

        SixModelObject strType = tc.curFrame.codeRef.staticInfo.compUnit.hllConfig.strBoxType;
        SixModelObject res = hashType.st.REPR.allocate(tc, hashType.st);

        Map<String, String> env = System.getenv();
        for (String envName : env.keySet())
            res.bind_key_boxed(tc, envName, box_s(env.get(envName), strType, tc));

        return res;
    }

    public static long getpid(ThreadContext tc) {
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

                if (pvlc.indexOf("win") >= 0)
                    propVal = "MSWin32";
                else if (pvlc.indexOf("mac os x") >= 0)
                    propVal = "darwin";
            }
            res.bind_key_boxed(tc, envName, box_s(propVal, strType, tc));
        }

        return res;
    }
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

            for (ExceptionHandling.TraceElement te : ExceptionHandling.backtrace(((VMExceptionInstance)obj))) {
                if (te.frame.codeRef.staticInfo.isThunk)
                    continue;
                SixModelObject annots = Hash.st.REPR.allocate(tc, Hash.st);
                if (te.file != null) annots.bind_key_boxed(tc, "file", box_s(te.file, Str, tc));
                if (te.line >= 0) annots.bind_key_boxed(tc, "line", box_i(te.line, Int, tc));
                SixModelObject row = Hash.st.REPR.allocate(tc, Hash.st);
                row.bind_key_boxed(tc, "sub", te.frame.codeRef);
                row.bind_key_boxed(tc, "annotations", annots);
                result.push_boxed(tc, row);
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

            for (ExceptionHandling.TraceElement te : ExceptionHandling.backtrace(((VMExceptionInstance)obj))) {
                if (te.frame.codeRef.staticInfo.isThunk)
                    continue;
                SixModelObject annots = Hash.st.REPR.allocate(tc, Hash.st);
                if (te.file != null) annots.bind_key_boxed(tc, "file", box_s(te.file, Str, tc));
                if (te.line >= 0) annots.bind_key_boxed(tc, "line", box_i(te.line, Int, tc));
                SixModelObject row = Hash.st.REPR.allocate(tc, Hash.st);
                row.bind_key_boxed(tc, "sub", te.frame.codeRef);
                row.bind_key_boxed(tc, "annotations", annots);
                result.push_boxed(tc, row);
            }
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

                    continue;
                SixModelObject annots = Hash.st.REPR.allocate(tc, Hash.st);
                if (te.file != null) annots.bind_key_boxed(tc, "file", box_s(te.file, Str, tc));
                if (te.line >= 0) annots.bind_key_boxed(tc, "line", box_i(te.line, Int, tc));
                SixModelObject row = Hash.st.REPR.allocate(tc, Hash.st);
                row.bind_key_boxed(tc, "sub", te.frame.codeRef);
                row.bind_key_boxed(tc, "annotations", annots);
                result.push_boxed(tc, row);
            }

            return result;
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

                SixModelObject annots = Hash.st.REPR.allocate(tc, Hash.st);
                if (te.file != null) annots.bind_key_boxed(tc, "file", box_s(te.file, Str, tc));
                if (te.line >= 0) annots.bind_key_boxed(tc, "line", box_i(te.line, Int, tc));
                SixModelObject row = Hash.st.REPR.allocate(tc, Hash.st);
                row.bind_key_boxed(tc, "sub", te.frame.codeRef);
                row.bind_key_boxed(tc, "annotations", annots);
                result.push_boxed(tc, row);
            }

            return result;
        }
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

        try {
      InputStream is = Ops.class.getResourceAsStream("/jvmconfig.properties");
      Properties config = new Properties();
      config.load(is);
      for (String name : config.stringPropertyNames())
          res.bind_key_boxed(tc, name, box_s(config.getProperty(name), strType, tc));
    } catch (Throwable e) {
      die_s("Failed to load config.properties", tc);
    }

        return res;
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

            cf.workingNameMap = new HashMap<String, Integer>(cs.nameMap);
        for (String name : cf.workingNameMap.keySet()) {
            Integer lookup = cf.workingNameMap.get(name);
            switch (lookup & 7) {
            case CallSiteDescriptor.ARG_OBJ:
                result.bind_key_boxed(tc, name, (SixModelObject)args[lookup >> 3]);
                break;
            case CallSiteDescriptor.ARG_INT:
                result.bind_key_boxed(tc, name, box_i((long)args[lookup >> 3], hllConfig.intBoxType, tc));
                break;
            case CallSiteDescriptor.ARG_NUM:
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

            switch (lookup & 7) {
            case CallSiteDescriptor.ARG_OBJ:
                result.bind_key_boxed(tc, name, (SixModelObject)args[lookup >> 3]);
                break;
            case CallSiteDescriptor.ARG_INT:
                result.bind_key_boxed(tc, name, box_i((long)args[lookup >> 3], hllConfig.intBoxType, tc));
                break;
            case CallSiteDescriptor.ARG_NUM:
                result.bind_key_boxed(tc, name, box_n((double)args[lookup >> 3], hllConfig.numBoxType, tc));
                break;
            case CallSiteDescriptor.ARG_STR:
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SixModelObject.bind_key_boxed()

                break;
            case CallSiteDescriptor.ARG_INT:
                result.bind_key_boxed(tc, name, box_i((long)args[lookup >> 3], hllConfig.intBoxType, tc));
                break;
            case CallSiteDescriptor.ARG_NUM:
                result.bind_key_boxed(tc, name, box_n((double)args[lookup >> 3], hllConfig.numBoxType, tc));
                break;
            case CallSiteDescriptor.ARG_STR:
                result.bind_key_boxed(tc, name, box_s((String)args[lookup >> 3], hllConfig.strBoxType, tc));
                break;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.