mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Add emptystr implementation and stub out co-routine functions.
This commit is contained in:
parent
e739ffedce
commit
86e5e57f4c
@ -1358,12 +1358,16 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
|.else
|
||||
|.ffunc coroutine_wrap_aux
|
||||
|.endif
|
||||
| stg r0, 0(r0)
|
||||
| stg r0, 0(r0)
|
||||
|.endmacro
|
||||
|
|
||||
| coroutine_resume_wrap 1 // coroutine.resume
|
||||
| coroutine_resume_wrap 0 // coroutine.wrap
|
||||
|
|
||||
|.ffunc coroutine_yield
|
||||
| stg r0, 0(r0)
|
||||
| stg r0, 0(r0)
|
||||
|
|
||||
|//-- Math library -------------------------------------------------------
|
||||
|
|
||||
@ -1600,7 +1604,8 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
| j <3
|
||||
|
|
||||
|->fff_emptystr: // Range underflow.
|
||||
| stg r0, 0(r0)
|
||||
| lghi RD, 0
|
||||
| j <3
|
||||
|
|
||||
|.macro ffstring_op, name
|
||||
| .ffunc_1 string_ .. name
|
||||
|
Loading…
Reference in New Issue
Block a user