[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 85/86: Fix jit_reset to be useful
From: |
Andy Wingo |
Subject: |
[Guile-commits] 85/86: Fix jit_reset to be useful |
Date: |
Wed, 3 Apr 2019 11:39:06 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit f9da599ef552553052561c76506a55d7608b8ad1
Author: Andy Wingo <address@hidden>
Date: Wed Apr 3 17:37:18 2019 +0200
Fix jit_reset to be useful
---
lightening/lightening.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lightening/lightening.c b/lightening/lightening.c
index 7b46d4f..11cc373 100644
--- a/lightening/lightening.c
+++ b/lightening/lightening.c
@@ -214,9 +214,9 @@ jit_begin(jit_state_t *_jit, uint8_t* buf, size_t length)
{
ASSERT (!_jit->start);
- _jit->start = buf;
+ _jit->pc.uc = _jit->start = buf;
_jit->limit = buf + length;
- jit_reset(_jit);
+ _jit->overflow = 0;
}
jit_bool_t
@@ -230,7 +230,7 @@ void
jit_reset(jit_state_t *_jit)
{
ASSERT (_jit->start);
- _jit->pc.uc = _jit->start;
+ _jit->pc.uc = _jit->start = _jit->limit = NULL;
_jit->overflow = 0;
}
- [Guile-commits] 65/86: Add add-and-branch-on-overflow tests, (continued)
- [Guile-commits] 65/86: Add add-and-branch-on-overflow tests, Andy Wingo, 2019/04/03
- [Guile-commits] 59/86: Add more integer reg/reg branch-and-compare tests, Andy Wingo, 2019/04/03
- [Guile-commits] 80/86: Add subdir-objects option to libguile makefile., Andy Wingo, 2019/04/03
- [Guile-commits] 82/86: Merge in changes from upstream lightening, Andy Wingo, 2019/04/03
- [Guile-commits] 68/86: Add push/pop test, Andy Wingo, 2019/04/03
- [Guile-commits] 70/86: Add truncr_[df]_[li] tests, Andy Wingo, 2019/04/03
- [Guile-commits] 72/86: Add int->float tests, Andy Wingo, 2019/04/03
- [Guile-commits] 54/86: Add stxi tests, Andy Wingo, 2019/04/03
- [Guile-commits] 16/86: Create beginning of stripped-down lightning interface, Andy Wingo, 2019/04/03
- [Guile-commits] 84/86: Allow users to pass custom allocators, Andy Wingo, 2019/04/03
- [Guile-commits] 85/86: Fix jit_reset to be useful,
Andy Wingo <=
- [Guile-commits] 76/86: Implement arg shuffling for jit_call{i,r}, Andy Wingo, 2019/04/03
- [Guile-commits] 86/86: Merge from upstream Lightening, Andy Wingo, 2019/04/03
- [Guile-commits] 81/86: Change headers and files to be named "lightening" instead of "jit", Andy Wingo, 2019/04/03
- [Guile-commits] 71/86: Add float/double cast inst tests, Andy Wingo, 2019/04/03
- [Guile-commits] 60/86: Add floating-point reg/reg compare-and-branch tests, Andy Wingo, 2019/04/03
- [Guile-commits] 20/86: Trim unneded bits from jit.c, Andy Wingo, 2019/04/03
- [Guile-commits] 05/86: Inline body.texi and version.texi into lightning.texi, Andy Wingo, 2019/04/03
- [Guile-commits] 77/86: Provide some type safety for jit_gpr_t and jit_fpr_t, Andy Wingo, 2019/04/03
- [Guile-commits] 79/86: Replace GNU Lightning with Lightening, Andy Wingo, 2019/04/03
- [Guile-commits] 83/86: Adapt to lightning -> lightening name change, Andy Wingo, 2019/04/03