emitBEQ(5);
VM_ForwardReference fr1 = emitForwardBC(EQ);
  void emitNativeStackOverflowCheck (int frameSize) {    emitL    (S0, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER);   // S0 := thread pointer    emitL    (S0, VM_Entrypoints.jniEnvField.getOffset(), S0);      // S0 := thread.jniEnv    emitL    ( 0, VM_Entrypoints.JNIRefsTopField.getOffset(),S0);   // R0 := thread.jniEnv.JNIRefsTop    emitL    (S0, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER);   // S0 := thread pointer    emitCMPI ( 0, 0);                                 	 // check if S0 == 0 -> first native frame on stack    emitBEQ(5);                                      	 // skip 4 instructions forward    // check for enough space for requested frame size    emitL   ( 0,  VM_Entrypoints.stackLimitField.getOffset(), S0);  // R0 := &stack guard page    emitCAL (S0, -frameSize, FP);                        // S0 := &new frame pointer    emitTLT (S0,  0);                                    // trap if new frame below guard page    emitB(8);                                      	 // branch 5 instructions forward        // check for enough space for STACK_SIZE_JNINATIVE     emitL   ( 0,  VM_Entrypoints.stackLimitField.getOffset(), S0);  // R0 := &stack guard page    emitLIL(S0, 1);    emitSLI(S0, S0, STACK_LOG_JNINATIVE);    emitSF (S0, S0, FP);             // S0 := &new frame pointer    emitCMP(0, S0);    emitBLE( 2 );    emitTWI ( 1 );                                    // trap if new frame pointer below guard page    }