aboutsummaryrefslogtreecommitdiff
path: root/src/lj_target.h
diff options
context:
space:
mode:
authorMike Pall <mike>2020-06-13 00:52:54 +0200
committerMike Pall <mike>2020-06-15 02:52:00 +0200
commit8ae5170cdc9c307bd81019b3e014391c9fd00581 (patch)
treeccf9f17035d0754c1758faee209e9a26b4e03418 /src/lj_target.h
parent8b55054473452963f24b01efb7c4cc72497c74ec (diff)
downloadluajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.tar.gz
luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.tar.bz2
luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.zip
Improve assertions.
Diffstat (limited to 'src/lj_target.h')
-rw-r--r--src/lj_target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_target.h b/src/lj_target.h
index 47c960bc..ce67d000 100644
--- a/src/lj_target.h
+++ b/src/lj_target.h
@@ -152,7 +152,8 @@ typedef uint32_t RegCost;
152/* Return the address of an exit stub. */ 152/* Return the address of an exit stub. */
153static LJ_AINLINE char *exitstub_addr_(char **group, uint32_t exitno) 153static LJ_AINLINE char *exitstub_addr_(char **group, uint32_t exitno)
154{ 154{
155 lua_assert(group[exitno / EXITSTUBS_PER_GROUP] != NULL); 155 lj_assertX(group[exitno / EXITSTUBS_PER_GROUP] != NULL,
156 "exit stub group for exit %d uninitialized", exitno);
156 return (char *)group[exitno / EXITSTUBS_PER_GROUP] + 157 return (char *)group[exitno / EXITSTUBS_PER_GROUP] +
157 EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP); 158 EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP);
158} 159}