Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com> --- Makefile | 1 + include/jit/gc-map.h | 8 ++++++++ jit/compiler.c | 5 +++++ jit/gc-map.c | 7 +++++++ 4 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 include/jit/gc-map.h create mode 100644 jit/gc-map.c
diff --git a/Makefile b/Makefile index 5f7a5f5..941acb5 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ JIT_OBJS = \ jit/exception.o \ jit/expression.o \ jit/fixup-site.o \ + jit/gc-map.o \ jit/interval.o \ jit/invoke-bc.o \ jit/linear-scan.o \ diff --git a/include/jit/gc-map.h b/include/jit/gc-map.h new file mode 100644 index 0000000..8c3017e --- /dev/null +++ b/include/jit/gc-map.h @@ -0,0 +1,8 @@ +#ifndef JIT_GC_MAP_H +#define JIT_GC_MAP_H + +#include "jit/compilation-unit.h" + +int gc_map_init(struct compilation_unit *cu); + +#endif diff --git a/jit/compiler.c b/jit/compiler.c index 379c994..cd095b3 100644 --- a/jit/compiler.c +++ b/jit/compiler.c @@ -12,6 +12,7 @@ #include "jit/statement.h" #include "jit/bc-offset-mapping.h" #include "jit/exception.h" +#include "jit/gc-map.h" #include "jit/perf-map.h" #include "jit/subroutine.h" @@ -116,6 +117,10 @@ int compile(struct compilation_unit *cu) if (opt_trace_machine_code) trace_machine_code(cu); + err = gc_map_init(cu); + if (err) + goto out; + cu->native_ptr = buffer_ptr(cu->objcode); cu->is_compiled = true; diff --git a/jit/gc-map.c b/jit/gc-map.c new file mode 100644 index 0000000..277afb7 --- /dev/null +++ b/jit/gc-map.c @@ -0,0 +1,7 @@ +#include "jit/compilation-unit.h" +#include "jit/gc-map.h" + +int gc_map_init(struct compilation_unit *cu) +{ + return 0; +} -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel