summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/jit.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-09-30 12:39:31 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-09-30 12:39:31 +0000
commit312d4ff52e75bb2d0aa834b615e63d34e34d535c (patch)
tree01165ab41991846e611b6dbed2e6be117d084011 /src/runtime/c/pgf/jit.c
parentb7798f93489be146798b296125b998db6c7aaad6 (diff)
enough fixes to get the JIT compiler compile for ARM. It is still broken if you try to use it
Diffstat (limited to 'src/runtime/c/pgf/jit.c')
-rw-r--r--src/runtime/c/pgf/jit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/runtime/c/pgf/jit.c b/src/runtime/c/pgf/jit.c
index 963da45c7..056f3d872 100644
--- a/src/runtime/c/pgf/jit.c
+++ b/src/runtime/c/pgf/jit.c
@@ -636,10 +636,11 @@ pgf_jit_function(PgfReader* rdr, PgfAbstr* abstr,
PgfSegmentPatch* patch =
gu_buf_index(rdr->jit_state->segment_patches, PgfSegmentPatch, i);
if (patch->segment == segment) {
- if (patch->is_abs)
+ if (patch->is_abs) {
jit_patch_movi(patch->ref,jit_get_ip().ptr);
- else
+ } else {
jit_patch(patch->ref);
+ }
}
}
@@ -1128,9 +1129,9 @@ pgf_jit_done(PgfReader* rdr, PgfAbstr* abstr)
PgfAbsCat* arg =
gu_map_get(abstr->cats, patch->cid, PgfAbsCat*);
- if (arg != NULL)
+ if (arg != NULL) {
jit_patch_calli(patch->ref,(jit_insn*) arg->predicate);
- else {
+ } else {
PgfAbsFun* con =
gu_map_get(abstr->funs, patch->cid, PgfAbsFun*);
if (con == NULL)