Browse Source

Fix error finding function end in jit_dump_function().

pull/1/head
Aleksey Demakov 12 years ago
parent
commit
bbca38a4d1
  1. 3
      ChangeLog
  2. 6
      jit/jit-dump.c

3
ChangeLog

@ -1,5 +1,8 @@
2013-02-27 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-dump.c (jit_dump_function): fix error finding function end
address (thanks Alexey Galakhov <agalakhov@gmail.com> for spotting).
* jit/Makefile.am, jit/jit-apply-alpha.h, jit/jit-apply-alpha.c
* jit/jit-gen-alpha.h, jit/jit-rules-alpha.h, jit/jit-rules-alpha.c
* jit/jit-rules-alpha.ins: Remove all alpha related files from the

6
jit/jit-dump.c

@ -887,7 +887,9 @@ void jit_dump_function(FILE *stream, jit_function_t func, const char *name)
}
else if(func->is_compiled)
{
void *end = _jit_memory_get_function_end(func->context, func);
void *start = func->entry_point;
void *info = _jit_memory_find_function_info(func->context, start);
void *end = _jit_memory_get_function_end(func->context, info);
#if defined(JIT_BACKEND_INTERP)
/* Dump the interpreter's bytecode representation */
jit_function_interp_t interp;
@ -898,7 +900,7 @@ void jit_dump_function(FILE *stream, jit_function_t func, const char *name)
(int)(interp->working_area));
dump_interp_code(stream, (void **)(interp + 1), (void **)end);
#else
dump_object_code(stream, func->entry_point, end);
dump_object_code(stream, start, end);
#endif
}

Loading…
Cancel
Save