Branch: Tag:

2014-12-04

2014-12-04 19:27:04 by Per Hedbor <ph@opera.com>

Revert "Changed fast_call_threads_etc handling with valgrind"

This reverts commit 1c4cf54199bd51903bc071a5aceff11e40c00222.

Needs more work, currently it is causing crashes.

585:    low_add_mem_imm( 1, reg, offset, imm32 );   }    + #ifndef USE_VALGRIND   static void add_mem8_imm( enum amd64_reg reg, int offset, int imm32 )   {    int r2 = imm32 == -1 ? 1 : 0;
604:    ib( imm32 );    }   } + #endif      static void sub_reg_imm( enum amd64_reg reg, int imm32 )   {
983:    push(P_REG_R12);    push(P_REG_RBX);    sub_reg_imm(P_REG_RSP, 8); /* Align on 16 bytes. */ - #ifdef USE_VALGRIND -  mov_imm_mem32(0, P_REG_RSP, 0 ); /* clear counter used by check_threads_etc */ - #endif +     mov_reg_reg(ARG1_REG, Pike_interpreter_reg);    amd64_flush_code_generator_state();   }
1486:    {    LABEL_A;    /* Use C-stack for counter. We have padding added in entry */ + #ifndef USE_VALGRIND    add_mem8_imm( P_REG_RSP, 0, 1 );    jno( &label_B ); -  + #endif    call_rel_imm32( branch_check_threads_update_etc ); -  + #ifndef USE_VALGRIND    LABEL_B; -  + #endif    }   }