pike.git/
src/
code/
amd64.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-08-11
2014-08-11 14:26:25 by Per Hedbor <ph@opera.com>
d46b1dfa8f2c1b242de410a1d2336f3b758a24ac (
6
lines) (+
6
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
Verify ENTRY_PROLOGUE_SIZE size.
976:
*/ void amd64_ins_entry(void) {
+
size_t orig_ppc = PIKE_PC;
/* Push all registers that the ABI requires to be preserved. */ push(P_REG_RBP); mov_reg_reg(P_REG_RSP, P_REG_RBP);
987:
sub_reg_imm(P_REG_RSP, 8); /* Align on 16 bytes. */ mov_reg_reg(ARG1_REG, Pike_interpreter_reg); amd64_flush_code_generator_state();
+
+
if( PIKE_PC - orig_ppc != ENTRY_PROLOGUE_SIZE ) /* sanity check */
+
Pike_fatal("ENTRY_PROLOGUE_SIZE incorrectly set, should be 0x%x\n",
+
PIKE_PC-orig_ppc );
} void amd64_flush_code_generator_state(void)