亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sparcjitcodegen.java

?? java 到c的轉(zhuǎn)換程序的原代碼.對喜歡C程序而不懂JAVA程序的人很有幫助
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/** use just-in-time compilation to generate code for methods  * @version $Id: SPARCJITCodeGen.java,v 1.7 1999/04/06 03:30:37 pab Exp $  *//* This is part of the Just-In-Time compiler for the Toba system. */package toba.jit;/* We need the basic Toba runtime data structures, and the classfile * structures. */import toba.runtime.*;import toba.classfile.*;class JITCodeGen extends CodeGen {    /** Initialize the CodeGen class so its generator points to us.      * This must be done before anybody touches code generation, because      * the system class loader is going to look at CodeGen.generator,      * and if it's null will die a quick and painful death. */    public static void     Initialize ()    {        JITCodeGen jcg;        System.err.println ("SPARC JIT code generation has not been updated for a very long time.");        System.err.println ("Go through SPARCJITCodeGen.java and update all the REQUIRE statements.");        System.exit (1);        /* Verify our requirements */        CodeGen.verifyRequirements ();                /* Set the global code generator to use one of us. */        CodeGen.setGenerator (jcg = new JITCodeGen ());//        jcg.InitInstrumentation ();    }    /* Chances are, we'll have done this explicitly (since CodeGen.generator     * can be examined without being an active use of JITCodeGen), but     * just in case.... */    static {        Initialize();    }    /** Trivial constructor      */    public     JITCodeGen ()    {        super();    }        /** Return the native data address of a java array.      * Toba hash code: _O_TCJx0      */    public native static long    getArrayDataAddress (Object ap);            /** Return a pointer to a C-format string containing this data.      * Toba hash code: _S_Z43yi      */    public native static long    getStringAddress (String s);            /* Primitive instrumentation support: counts the number of instructions     * executed dynamically in code jit'd with this code generator, and     * emits that information at the end of the program. */    private int instrcounts [];         // Array of counts    private long icaddr;                // Native pointer to array data    public void    InitInstrumentation ()    {        int i;        instrcounts = new int [256];        i = instrcounts.length;        while (0 <= --i) {            instrcounts [i] = 0;        }        icaddr = getArrayDataAddress (instrcounts);    }    public void    SummarizeInstrumentation ()    {        int i;        if (0 == icaddr) {            return;        }        for (i = 0; i < instrcounts.length; i++) {            if (0 != instrcounts [i]) {                Opcode opc = Opcode.lookupOpcode (i);                System.out.println (opc.name + ": " + instrcounts [i]);            }        }    }    /** Allocate a block of sz bytes in uncollectable memory.      * @param sz number of bytes we need      * @returns address of allocated block      * Toba Hash: _i_qYFS3      */    private static native long    allocUncolMemory (int sz);    /* Function ID values to name functions.  Must match the defs in     * runtime/jit_JITCodeGen.c. */    static final int FID_new = 1;    static final int FID_anewarray = 2;    static final int FID_initclass = 3;    static final int FID_vmnewarray = 4;    static final int FID_getarraylen = 5;    static final int FID_geteltoffs = 6;    static final int FID_intdiv = 7;    static final int FID_intrem = 8;    static final int FID_longdiv = 9;    static final int FID_longrem = 10;    static final int FID_longmul = 11;    static final int FID_remdr = 12;    static final int FID_dtoi = 13;    static final int FID_dtol = 14;    static final int FID_longshift = 15;    static final int FID_long2f = 16;    static final int FID_long2d = 17;    static final int FID_longcmp = 18;    static final int FID_puts = 19;    static final int FID_throwNPE = 20;    static final int FID_mythread = 21;    static final int FID_sthread_got_exc = 22;    static final int FID_setjmp = 23;    static final int FID_longjmp = 24;    static final int FID_findhandler = 25;    static final int FID_athrow = 26;    static final int FID_monitorenter = 27;    static final int FID_monitorexit = 28;    static final int FID_throwCCE = 29;    static final int FID_instanceof = 30;    static final int FID_findinterface = 31;    static final int FID_throwNASE = 32;    static final int FID_enterclass = 33;    static final int FID_exitclass = 34;    static final int FID_backjumpfn = 35;    /** Return some arbitrary function's address      * @param fid an index naming the function we want      * @returns address as long      * Toba hash code:  _i_m3SYh      */    static native long    getFuncAddr (int fid);    static final int OID_mythread_jmpbuf = 1;    static final int OID_mythread_exception = 2;    static final int OID_class_flags = 3;    static final int OID_class_nsupers = 4;    static final int OID_class_supers = 5;    static final int OID_mtgeneric_f = 6;    /** Return the offset within a structure of a given field      * @param oid an index naming the structure offset we want      * @returns offset as int      * Toba hash code: _i_N1XnB      */    static native int    getFieldOffset (int oid);    /** Return a pointer to the cl_Foo structure for the primitive type      * Foo.      * @param tid Opcode.T_Foo code for type foo      * @param getArray Return pointer to acl_Foo.C instead of cl_Foo      * @returns address as long      * Toba hash code: _ii_QHITB      */    static native long    getNPprimclass (int tid, int getArray);    SPARC code;                 // Where the code is built up    int frame_size;             // Size of activation record    /* To handle exceptions, we need the following local variables:     *  + struct mythread * tdata;     *  + void * oldbuf;     *  + volatile int pc;  // or monitorheld, for syncwrappers     *  + jmp_buf newbuf;     */    private static final int ARLV_NumVars = 6;    private static final int ARLV_methname = 5; // char * methodname    private static final int ARLV_insref = 4; // Object instance_ref, for sync method    private static final int ARLV_tdata = 3; // struct mythread *    private static final int ARLV_pc = 2; // volatile int (overlaid with monitorheld)    private static final int ARLV_monitorheld = 2; // volatile int (overlaid with pc)    private static final int ARLV_oldbuf = 1; // void *    private static final int ARLV_newbuf = 0; // jmp_buf    /* Probably the first few are one word, but maybe not.  jmp_buf is a     * pretty good sized structure.  The first array of ints is     * initialized to the sizes of these objects; the second to their     * offsets within an activation record. */    private static int excOheadSize [];    private static int excOheadOffs [];    private static int excOheadTotal;    /** Return the number of bytes required to hold each of the local      * overhead variables.  The order of storage must match the index      * ordering of ARLV_foo above.      * @returns array of ints with variable sizes.      * Toba hash code: __Ds3WL      */    private static native int[]    getOverheadSize ();    static {        int offs;        int i;                excOheadSize = getOverheadSize ();        excOheadOffs = new int [excOheadSize.length];        offs = 0;        for (i = 0; i < excOheadSize.length; i++) {            if (4 < excOheadSize [i]) {                // 8-byte align large elements                offs = (7 + offs) & ~0x07;            } else {                // 4-byte align normal elements                offs = (3 + offs) & ~0x03;            }            excOheadOffs [i] = offs;            offs += excOheadSize [i];        }        // 8-byte align whatever follows        excOheadTotal = (7 + offs) & ~0x07;        /* Go through and update the offsets so we can get to values         * at %fp[excOheadOffs[ARLV]]. */        for (i = 0; i < excOheadOffs.length; i++) {            excOheadOffs [i] = - (excOheadTotal - excOheadOffs [i]);        }    }    /* This is the overhead size for this code's AR: either 0 or     * excOheadTotal */    int overheadSize;    /** Convert from local variable number to an offset in bytes from the      * frame pointer.      * @param lvi The local variable offset; zero starts 4bytes+FPXFSIZ below %fp      * @returns offset of local variable address */    private int    LVOffs (int lvi)    {        return - (SPARC.ALUFPUXFERSIZE + overheadSize + 4 * (1 + lvi));    }    /** Allocate activation record and preserve parameters.      * Copies parameters using SPARC calling convention into the local      * variable stack as well as (for safety, though we don't use it)      * the standard register dump area.      * @param m method for which we're generating code      * @param ndata number of words to reserve for local data; -1 for normal method      */    private void    Prologue (Method m,         // What we're generating code for              int ndata)        // Number of data words for special AR    {        int i;                  // General purpose index        int maxcaw;             // Maximum callee argument words        int aw;                 // Callee argument words        /* Allocate an activation record.  We start with the minimum frame         * for a SPARC AR. */        frame_size = SPARC.MINFRAME;        /* What kind of AR are we generating? */        if (0 <= ndata) {            /* If we were told a non-zero amount of local data to store, just do             * that.  We're probably generating the AR for a synchronization             * wrapper.  NB: The caller is responsible for setting overheadSize,             * _before_ this function is called. */            frame_size += overheadSize;            frame_size += 4 * ndata;        } else {            /* We're computing what's needed for the method under consideration.             * Now, if there's an exception handler, we need to add local storage             * for some support data. */            overheadSize = 0;            if (0 < m.handlers.length) {                overheadSize = excOheadTotal;            }            frame_size += overheadSize;            /* Now add space for the evaluation stack; locals first, followed             * by evaluation elements */            frame_size += 4 * (m.max_locals + m.max_stack);            /* Determine the maximum number of argument words in any callee             * of this procedure. */            maxcaw = 0;            for (i = 0; i < m.instrs.length; i++) {                if ((aw = m.instrs [i].argwords()) > maxcaw) {                    maxcaw = aw;                }            }            /* Subtract off 6 for what we can fit in registers.  If no call needs             * more than 6 registers, set this to zero. */            maxcaw -= 6;            if (0 > maxcaw) {                maxcaw = 0;            }            /* Extend frame to handle overflow arguments, right above the             * register dump area. */            frame_size += 4 * maxcaw;//            System.out.println ("Frame size " + frame_size + " covering " + m.max_locals +//                                " locals, " + m.max_stack + " stack, " + maxcaw + " overflow args");        }        /* Round frame size to be double-word aligned. */        if (4 == (frame_size % 8)) {            frame_size += 4;        }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.亚洲人| 久久免费精品国产久精品久久久久| av电影在线观看一区| 国产精品77777| 国产激情精品久久久第一区二区 | 欧美日韩成人一区二区| 色综合天天综合给合国产| 99re在线视频这里只有精品| 不卡av免费在线观看| 99国产精品久久| 欧美综合天天夜夜久久| 欧美在线观看视频在线| 欧美日韩一区不卡| 91精品国产综合久久精品图片| 91精品在线一区二区| 日韩亚洲欧美在线| 久久在线免费观看| 国产欧美日韩精品一区| 国产精品国产三级国产专播品爱网| 国产精品视频一二三| 一区二区三区中文字幕| 日日夜夜精品免费视频| 国产一区视频网站| 成人app在线观看| 欧美综合视频在线观看| 日韩欧美视频在线 | 蜜臀av一区二区| 国产又黄又大久久| av成人免费在线| 欧美日韩一区二区三区四区| 精品国产一区二区在线观看| 国产午夜一区二区三区| 亚洲乱码国产乱码精品精小说 | 国产精品66部| 91免费小视频| 欧美一区二区三区婷婷月色| 久久先锋资源网| 亚洲视频图片小说| 日韩电影在线观看电影| 国产成人一区在线| 欧洲精品一区二区| 国产日韩亚洲欧美综合| 亚洲综合成人网| 麻豆专区一区二区三区四区五区| 国产精品538一区二区在线| 欧美自拍偷拍一区| 久久精品亚洲国产奇米99| 亚洲精选在线视频| 久久99精品国产| 91精彩视频在线| 国产三级精品三级在线专区| 亚洲国产aⅴ成人精品无吗| 国产很黄免费观看久久| 欧美天堂一区二区三区| 久久久精品欧美丰满| 午夜精品免费在线| 播五月开心婷婷综合| 欧美一级欧美三级| 亚洲精品国产成人久久av盗摄 | av中文字幕一区| 欧美一三区三区四区免费在线看 | 中文字幕中文在线不卡住| 亚洲一区二区在线视频| 国产精品亚洲视频| 欧美美女视频在线观看| 中文字幕一区二区视频| 久久狠狠亚洲综合| 欧美三级欧美一级| 136国产福利精品导航| 国产一区高清在线| 777a∨成人精品桃花网| 亚洲精选视频在线| 成人av资源在线观看| www欧美成人18+| 免费成人美女在线观看| 欧美日韩一区不卡| 一区二区在线观看视频| 成人性生交大片免费看中文| 日韩精品一区二区三区在线观看| 亚洲一区二区三区四区中文字幕| 成人三级伦理片| 精品国产麻豆免费人成网站| 午夜婷婷国产麻豆精品| 欧美性生活影院| 亚洲日本成人在线观看| 99久久精品国产观看| 中文字幕不卡在线播放| 国产成人av一区二区三区在线观看| 日韩一区二区视频在线观看| 午夜精品一区二区三区电影天堂| 91久久精品午夜一区二区| 亚洲嫩草精品久久| 色综合色狠狠天天综合色| 亚洲欧洲日韩在线| 本田岬高潮一区二区三区| 欧美激情在线观看视频免费| 国产精品一二二区| 国产肉丝袜一区二区| 成人午夜视频网站| 国产日韩欧美一区二区三区乱码| 国产一区二区三区在线观看免费视频 | 成人激情动漫在线观看| 久久久久国产精品人| 国产在线看一区| 久久女同性恋中文字幕| 国产东北露脸精品视频| 国产女同性恋一区二区| 国产精品小仙女| 国产精品传媒在线| 91福利社在线观看| 香港成人在线视频| 欧美一区二区三区播放老司机 | 91精品在线免费观看| 视频在线在亚洲| 日韩一级在线观看| 国内精品免费在线观看| 国产视频一区在线观看| 成人av综合一区| 一区二区三区成人在线视频| 欧美日韩一级二级| 黄一区二区三区| 中文成人av在线| 91黄色免费看| 日本亚洲天堂网| 精品99久久久久久| 成人丝袜18视频在线观看| 亚洲精品自拍动漫在线| 欧美日韩国产精选| 精品一区二区三区免费毛片爱 | 亚洲va天堂va国产va久| 欧美精品久久一区| 国产一区视频导航| 亚洲免费观看视频| 欧美高清视频一二三区 | 国产mv日韩mv欧美| 亚洲另类色综合网站| 在线观看91精品国产麻豆| 久久国产综合精品| 综合在线观看色| 91精品婷婷国产综合久久性色| 国产毛片精品国产一区二区三区| 亚洲欧美综合网| 正在播放亚洲一区| 国产成人免费高清| 午夜精品久久久久影视| 久久久久国产精品厨房| 色国产综合视频| 久草中文综合在线| 亚洲精品国产第一综合99久久| 欧美一区二区播放| 91视频免费观看| 国产自产视频一区二区三区| 亚洲人吸女人奶水| 久久网站热最新地址| 欧美综合一区二区| 成人综合日日夜夜| 日日摸夜夜添夜夜添精品视频| 国产人久久人人人人爽| 欧美精品777| eeuss鲁片一区二区三区在线观看| 亚洲va欧美va人人爽午夜| 欧美激情综合在线| 日韩欧美中文字幕精品| 91农村精品一区二区在线| 国产一区二区导航在线播放| 亚洲一卡二卡三卡四卡五卡| 国产午夜亚洲精品羞羞网站| 欧美精品第1页| 一本大道久久a久久综合| 国产自产2019最新不卡| 香蕉乱码成人久久天堂爱免费| 国产精品丝袜一区| 欧美精品一区二区三区在线播放| 日本高清不卡视频| 成人久久18免费网站麻豆| 久久国产尿小便嘘嘘尿| 亚洲成人综合在线| 亚洲欧美怡红院| 国产亚洲一二三区| 日韩欧美中文一区二区| 欧美日韩国产一区| 色综合久久久网| 成人av网站在线| 国产精品综合网| 麻豆精品在线播放| 日韩av不卡在线观看| 亚洲高清久久久| 一区二区视频免费在线观看| 一区视频在线播放| 欧美国产日韩a欧美在线观看 | 日韩精品电影一区亚洲| 亚洲久草在线视频| 亚洲欧美色图小说| 亚洲欧美在线观看| 亚洲人成小说网站色在线| 国产精品美女视频| 国产精品女同一区二区三区| 久久精品视频一区二区三区| 精品美女一区二区| 日韩欧美一级片|