pike.git / src / code / amd64.c

version» Context lines:

pike.git/src/code/amd64.c:645:    else    {    opcode( 0x83 );    modrm( 3,7,reg);    ib( imm32 );    }   }      static void cmp_reg_reg( enum amd64_reg reg1, enum amd64_reg reg2 )   { -  rex(1, reg1, 0, reg2); +  rex(1, reg2, 0, reg1);    opcode( 0x39 ); -  modrm( 3, reg1, reg2 ); +  modrm( 3, reg2, reg1 );   }      static int jmp_rel_imm32( int addr )   {    int rel = addr - (PIKE_PC + 5); // counts from the next instruction    int res;    opcode( 0xe9 );    res = PIKE_PC;    id( rel );    return res;
pike.git/src/code/amd64.c:3087:    ins_debug_instr_prologue(a-F_OFFSET, b, c);    amd64_load_fp_reg();    amd64_load_sp_reg();    mov_mem_reg(fp_reg, OFFSETOF(pike_frame, locals), ARG1_REG);    add_reg_imm(ARG1_REG, b*sizeof(struct svalue));    jmp(&label_A);    LABEL_B;    amd64_push_int(0, c);    LABEL_A;    cmp_reg_reg(sp_reg, ARG1_REG); -  jg(&label_B); +  jl(&label_B);    }    return;       case F_INIT_FRAME:    ins_debug_instr_prologue(a-F_OFFSET, b, c);    amd64_load_fp_reg();       if(OFFSETOF(pike_frame, num_locals) != OFFSETOF(pike_frame, num_args)-2 )    Pike_fatal("This code does not with unless num_args\n"    "directly follows num_locals in struct pike_frame\n");