-
Notifications
You must be signed in to change notification settings - Fork 1
/
luajit_partial_compilation.yaml
32 lines (31 loc) · 1.41 KB
/
luajit_partial_compilation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
rules:
- id: luajit_partial_compilation
metadata:
author: Sergey Bronnikov <[email protected]>
description: Function may be JIT-compiled, depending on the circumstances.
references:
- https://github.com/tarantool/tarantool/wiki/LuaJIT-Not-Yet-Implemented
- http://web.archive.org/web/20220717120825/http://wiki.luajit.org/NYI
pattern-either:
- pattern: getfenv(...) # 2.1 partial
- pattern: next(...) # 2.1 partial
- pattern: print(...) # partial
- pattern: select(...) # partial
- pattern: tonumber(...) # partial
- pattern: tostring(...) # partial
- pattern: xpcall(...) # partial
- pattern: string.find(...) # 2.1 partial
- pattern: string.format(...) # 2.1 partial
- pattern: table.insert(...) # partial
- pattern: ffi.cast(...) # partial
- pattern: ffi.errno(...) # partial
- pattern: ffi.new(...) # partial
- pattern: ffi.sizeof(...) # partial
- pattern: ffi.typeof(...) # partial
message: |
All aspects of Lua are implemented in LuaJIT's interpreter, but not all of
them are implemented in LuaJIT's JIT compiler.
Function may be JIT-compiled, depending on the circumstances. Otherwise
will fall back to the interpreter or stitch.
languages: [lua]
severity: INFO