pike.git/
src/
code/
amd64.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:27:07 by Per Hedbor <ph@opera.com>
49d93149eabe13330075fd46c5d8f629ac2c01c6 (
6
lines) (+
6
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
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)