diff options
author | Mike Pall <mike> | 2021-03-23 00:35:46 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2021-03-23 00:39:50 +0100 |
commit | a32aeadc6878305658fb3939830e6abaef587e40 (patch) | |
tree | 48f3df3a4ca72b1fb7cd628f15b9d21d864bbbc2 /src/lj_jit.h | |
parent | ddd0fd8f3754ad83423623655d8b3f8454a7cf1e (diff) | |
download | luajit-a32aeadc6878305658fb3939830e6abaef587e40.tar.gz luajit-a32aeadc6878305658fb3939830e6abaef587e40.tar.bz2 luajit-a32aeadc6878305658fb3939830e6abaef587e40.zip |
Handle on-trace OOM errors from helper functions.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r-- | src/lj_jit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index 03ed3ea0..34ddf907 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -184,6 +184,7 @@ typedef struct MCLink { | |||
184 | typedef struct SnapShot { | 184 | typedef struct SnapShot { |
185 | uint32_t mapofs; /* Offset into snapshot map. */ | 185 | uint32_t mapofs; /* Offset into snapshot map. */ |
186 | IRRef1 ref; /* First IR ref for this snapshot. */ | 186 | IRRef1 ref; /* First IR ref for this snapshot. */ |
187 | uint16_t mcofs; /* Offset into machine code in MCode units. */ | ||
187 | uint8_t nslots; /* Number of valid slots. */ | 188 | uint8_t nslots; /* Number of valid slots. */ |
188 | uint8_t topslot; /* Maximum frame extent. */ | 189 | uint8_t topslot; /* Maximum frame extent. */ |
189 | uint8_t nent; /* Number of compressed entries. */ | 190 | uint8_t nent; /* Number of compressed entries. */ |
@@ -485,6 +486,7 @@ typedef struct jit_State { | |||
485 | const BCIns *startpc; /* Bytecode PC of starting instruction. */ | 486 | const BCIns *startpc; /* Bytecode PC of starting instruction. */ |
486 | TraceNo parent; /* Parent of current side trace (0 for root traces). */ | 487 | TraceNo parent; /* Parent of current side trace (0 for root traces). */ |
487 | ExitNo exitno; /* Exit number in parent of current side trace. */ | 488 | ExitNo exitno; /* Exit number in parent of current side trace. */ |
489 | int exitcode; /* Exit code from unwound trace. */ | ||
488 | 490 | ||
489 | BCIns *patchpc; /* PC for pending re-patch. */ | 491 | BCIns *patchpc; /* PC for pending re-patch. */ |
490 | BCIns patchins; /* Instruction for pending re-patch. */ | 492 | BCIns patchins; /* Instruction for pending re-patch. */ |