Home | History | Annotate | Download | only in x86

Lines Matching defs:code

2 /* Test Valgrind's ability to spot writes to code which has been
18 WRONG output (if you fail to spot code-writes to code[0 .. 4]) is
47 static UChar code[10];
49 /* Make `code' be PUSHL $dest ; ret */
53 code[0] = 0x68; /* PUSH imm32 */
54 code[1] = (dest & 0xFF);
55 code[2] = ((dest >> 8) & 0xFF);
56 code[3] = ((dest >> 16) & 0xFF);
57 code[4] = ((dest >> 24) & 0xFF);
58 code[5] = 0xC3;
61 /* Calling aa gets eventually to the function residing in code[0..].
65 shouldn't if main calls code[] directly. */
67 // force an indirect branch to code[0], so vex can't chase it
72 void cc ( int x ) { dd(x, (void(*)(int)) &code[0]); }