diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-02-08 10:14:27 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-08 11:53:10 -0500 |
| commit | 54295ba5e18818578d9df2ddbec7bebb8c4ec3a7 (patch) | |
| tree | da04974d647c27ba6a95105e02694464e6881325 /prism | |
| parent | b2d468fcedebdb02d342b2fdd2028c25299c4d60 (diff) | |
[PRISM] Compile constant reads using opt_getconstant_path
Diffstat (limited to 'prism')
| -rw-r--r-- | prism/util/pm_constant_pool.c | 2 | ||||
| -rw-r--r-- | prism/util/pm_constant_pool.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/prism/util/pm_constant_pool.c b/prism/util/pm_constant_pool.c index 2b607293ad..cda76596fd 100644 --- a/prism/util/pm_constant_pool.c +++ b/prism/util/pm_constant_pool.c @@ -186,7 +186,7 @@ pm_constant_pool_id_to_constant(const pm_constant_pool_t *pool, pm_constant_id_t * the constant is not found. */ pm_constant_id_t -pm_constant_pool_find(pm_constant_pool_t *pool, const uint8_t *start, size_t length) { +pm_constant_pool_find(const pm_constant_pool_t *pool, const uint8_t *start, size_t length) { assert(is_power_of_two(pool->capacity)); const uint32_t mask = pool->capacity - 1; diff --git a/prism/util/pm_constant_pool.h b/prism/util/pm_constant_pool.h index 086843c954..bf049ec593 100644 --- a/prism/util/pm_constant_pool.h +++ b/prism/util/pm_constant_pool.h @@ -163,7 +163,7 @@ pm_constant_t * pm_constant_pool_id_to_constant(const pm_constant_pool_t *pool, * @param length The length of the constant. * @return The id of the constant. */ -pm_constant_id_t pm_constant_pool_find(pm_constant_pool_t *pool, const uint8_t *start, size_t length); +pm_constant_id_t pm_constant_pool_find(const pm_constant_pool_t *pool, const uint8_t *start, size_t length); /** * Insert a constant into a constant pool that is a slice of a source string. |
