void SourceAssembler::define_call_info() {
#if ENABLE_EMBEDDED_CALLINFO
  // Only the interpreter defined call info in the source assembler
  CallInfo ci = CallInfo::interpreter();
  emit_comment("call info");
  if (!GenerateGNUCode)
    if (!GenerateInlineAsm)
      emit("\ttest eax, %d\n", ci.raw());
    else
      emit("\t__asm test eax, %d\n", ci.raw());
  else
    emit("\ttest $%d, %%eax\n", ci.raw());
#endif // ENABLE_EMBEDDED_CALLINFO
}
Exemplo n.º 2
0
void SourceAssembler::define_call_info() {
#if ENABLE_EMBEDDED_CALLINFO
  CallInfo ci = CallInfo::interpreter();
  define_long(ci.raw());
#endif
}