asm.emitLVAL(S0, compiledMethodId);
asm.emitLVAL(S0, compiledMethod.getId());
  private void genPrologue () {    if (klass.isBridgeFromNative()) {      VM_JNICompiler.generateGlueCodeForJNIMethod (asm, method);    }    // Generate trap if new frame would cross guard page.    //    if (isInterruptible) {      asm.emitStackOverflowCheck(frameSize);                            // clobbers R0, S0    }    // Buy frame.    //    asm.emitSTU (FP, -frameSize, FP); // save old FP & buy new frame (trap if new frame below guard page) !!TODO: handle frames larger than 32k when addressing local variables, etc.        // If this is a "dynamic bridge" method, then save all registers except GPR0, FPR0, JTOC, and FP.    //    if (klass.isDynamicBridge()) {      int offset = frameSize;      for (int i = LAST_NONVOLATILE_FPR; i >= FIRST_VOLATILE_FPR; --i)         asm.emitSTFD (i, offset -= 8, FP);      for (int i = LAST_NONVOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i)         asm.emitST (i, offset -= 4, FP);    }        // Fill in frame header.    //    asm.emitLVAL(S0, compiledMethodId);    asm.emitMFLR(0);    asm.emitST  (S0, STACKFRAME_METHOD_ID_OFFSET, FP);                   // save compiled method id    asm.emitST  (0, frameSize + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // save LR !!TODO: handle discontiguous stacks when saving return address        // Setup expression stack and locals.    //    asm.emitCAL (SP, emptyStackOffset, FP);                              // setup expression stack    genMoveParametersToLocals();                                                   // move parameters to locals       // Perform a thread switch if so requested.    //    genThreadSwitchTest(VM_Thread.PROLOGUE); //           (VM_BaselineExceptionDeliverer WONT release the lock (for synchronized methods) during prologue code)    // Acquire method syncronization lock.  (VM_BaselineExceptionDeliverer will release the lock (for synchronized methods) after  prologue code)    //    if (method.isSynchronized())       genSynchronizedMethodPrologue();    // Mark start of code for which source lines exist (for jdp debugger breakpointing).    //    asm.emitSENTINAL();   }