Skip to content

Commit 083d5a4

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Directly embed deopt idx instead of return address
Summary: Take 2 of D97524722. Adds an ifdef for lightweight frames and backs out the Ci_GEN_JIT_DATA_OFFSET_STATE changes. Reviewed By: alexmalyshev Differential Revision: D98528439 fbshipit-source-id: f7338ac27b120836051afaf5d1a77d12ccb1f0b0
1 parent e633649 commit 083d5a4

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Include/cinder/genobject_jit.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,9 @@ typedef enum {
2323
} CiJITGenState;
2424

2525
/* Offsets for fields in jit::GenFooterData for fast access from C code.
26-
* These values are verified by static_assert in context.h. */
27-
#if defined(__aarch64__)
28-
/* On aarch64, GenDataFooter has an extra savedReturnIP field after
29-
* returnAddress, shifting subsequent fields by 8 bytes. */
30-
#define Ci_GEN_JIT_DATA_OFFSET_STATE 40
31-
#define Ci_GEN_JIT_DATA_OFFSET_YIELD_POINT 32
32-
#else
26+
* These values are verified by static_assert in runtime.h. */
3327
#define Ci_GEN_JIT_DATA_OFFSET_STATE 32
3428
#define Ci_GEN_JIT_DATA_OFFSET_YIELD_POINT 24
35-
#endif
3629

3730
/* Functions for extracting the state for generator objects known to be JIT
3831
* controlled. Implemented as inline functions using hard-coded offsets for

0 commit comments

Comments
 (0)