diff options
author | Sverker Eriksson <[email protected]> | 2016-09-28 20:55:40 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-10-14 14:29:16 +0200 |
commit | e77d7a8417368617c4c228af9556a7f6a8f3e84c (patch) | |
tree | b2c2cf66838e1c8492246ef0321e921e93bced0e /erts/emulator/hipe/hipe_stack.c | |
parent | 966098ceb9dd9d18e9bcd37cd06b96045903e320 (diff) | |
download | otp-e77d7a8417368617c4c228af9556a7f6a8f3e84c.tar.gz otp-e77d7a8417368617c4c228af9556a7f6a8f3e84c.tar.bz2 otp-e77d7a8417368617c4c228af9556a7f6a8f3e84c.zip |
erts: Fix early hipe patch loading
by introducing hipe_bifs:commit_patch_load/1
that creates the HipeModule.
Diffstat (limited to 'erts/emulator/hipe/hipe_stack.c')
-rw-r--r-- | erts/emulator/hipe/hipe_stack.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/erts/emulator/hipe/hipe_stack.c b/erts/emulator/hipe/hipe_stack.c index 3d082668a6..b80e44bc37 100644 --- a/erts/emulator/hipe/hipe_stack.c +++ b/erts/emulator/hipe/hipe_stack.c @@ -143,7 +143,7 @@ void hipe_init_sdesc_table(struct hipe_sdesc *sdesc) * representation. If different representations are needed in * the future, this code has to be made target dependent. */ -struct hipe_sdesc *hipe_decode_sdesc(Eterm arg, int* do_commitp) +struct hipe_sdesc *hipe_decode_sdesc(Eterm arg) { Uint ra, exnra; Eterm *live; @@ -158,7 +158,7 @@ struct hipe_sdesc *hipe_decode_sdesc(Eterm arg, int* do_commitp) return 0; tp = tuple_val(arg); - if (tp[0] != make_arityval(7) || + if (tp[0] != make_arityval(6) || term_to_Uint(tp[1], &ra) == 0 || term_to_Uint(tp[2], &exnra) == 0 || is_not_small(tp[3]) || @@ -191,12 +191,6 @@ struct hipe_sdesc *hipe_decode_sdesc(Eterm arg, int* do_commitp) return 0; } - switch(tp[7]) { - case am_true: *do_commitp = 1; break; - case am_false: *do_commitp = 0; break; - default: return 0; - } - /* Calculate number of words for the live bitmap. */ livebitswords = (fsize + stk_nargs + 1 + 31) / 32; /* Calculate number of bytes needed for the stack descriptor. */ |