immunio 0.15.4 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (454) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +0 -27
  3. data/ext/immunio/Rakefile +9 -0
  4. data/lib/immunio/plugins/active_record.rb +1 -1
  5. data/lib/immunio/plugins/active_record_relation.rb +1 -1
  6. data/lib/immunio/plugins/environment_reporter.rb +20 -0
  7. data/lib/immunio/rufus_lua_ext/ref.rb +1 -3
  8. data/lib/immunio/version.rb +1 -1
  9. data/lib/immunio/vm.rb +1 -2
  10. data/lua-hooks/Makefile +97 -0
  11. data/lua-hooks/ext/all.c +41 -52
  12. data/lua-hooks/ext/all.o +0 -0
  13. data/lua-hooks/ext/libinjection/libinjection_html5.o +0 -0
  14. data/lua-hooks/ext/libinjection/libinjection_sqli.o +0 -0
  15. data/lua-hooks/ext/libinjection/libinjection_xss.o +0 -0
  16. data/lua-hooks/ext/libinjection/lualib.c +2 -2
  17. data/lua-hooks/ext/lpeg/lpcap.c +2 -2
  18. data/lua-hooks/ext/lpeg/lpcap.o +0 -0
  19. data/lua-hooks/ext/lpeg/lpcode.c +2 -2
  20. data/lua-hooks/ext/lpeg/lpcode.h +1 -1
  21. data/lua-hooks/ext/lpeg/lpcode.o +0 -0
  22. data/lua-hooks/ext/lpeg/lpprint.o +0 -0
  23. data/lua-hooks/ext/lpeg/lptree.c +2 -2
  24. data/lua-hooks/ext/lpeg/lptypes.h +1 -1
  25. data/lua-hooks/ext/lpeg/lpvm.c +2 -2
  26. data/lua-hooks/ext/lpeg/lpvm.o +0 -0
  27. data/lua-hooks/ext/lua-cmsgpack/lua_cmsgpack.c +16 -3
  28. data/lua-hooks/ext/lua-snapshot/snapshot.c +14 -7
  29. data/lua-hooks/ext/luajit/COPYRIGHT +56 -0
  30. data/lua-hooks/ext/luajit/Makefile +159 -0
  31. data/lua-hooks/ext/luajit/README +16 -0
  32. data/lua-hooks/ext/luajit/doc/bluequad-print.css +166 -0
  33. data/lua-hooks/ext/luajit/doc/bluequad.css +325 -0
  34. data/lua-hooks/ext/luajit/doc/changes.html +804 -0
  35. data/lua-hooks/ext/luajit/doc/contact.html +104 -0
  36. data/lua-hooks/ext/luajit/doc/ext_c_api.html +189 -0
  37. data/lua-hooks/ext/luajit/doc/ext_ffi.html +332 -0
  38. data/lua-hooks/ext/luajit/doc/ext_ffi_api.html +570 -0
  39. data/lua-hooks/ext/luajit/doc/ext_ffi_semantics.html +1261 -0
  40. data/lua-hooks/ext/luajit/doc/ext_ffi_tutorial.html +603 -0
  41. data/lua-hooks/ext/luajit/doc/ext_jit.html +201 -0
  42. data/lua-hooks/ext/luajit/doc/ext_profiler.html +365 -0
  43. data/lua-hooks/ext/luajit/doc/extensions.html +448 -0
  44. data/lua-hooks/ext/luajit/doc/faq.html +186 -0
  45. data/lua-hooks/ext/luajit/doc/img/contact.png +0 -0
  46. data/lua-hooks/ext/luajit/doc/install.html +659 -0
  47. data/lua-hooks/ext/luajit/doc/luajit.html +236 -0
  48. data/lua-hooks/ext/luajit/doc/running.html +309 -0
  49. data/lua-hooks/ext/luajit/doc/status.html +118 -0
  50. data/lua-hooks/ext/luajit/dynasm/dasm_arm.h +456 -0
  51. data/lua-hooks/ext/luajit/dynasm/dasm_arm.lua +1125 -0
  52. data/lua-hooks/ext/luajit/dynasm/dasm_arm64.h +518 -0
  53. data/lua-hooks/ext/luajit/dynasm/dasm_arm64.lua +1166 -0
  54. data/lua-hooks/ext/luajit/dynasm/dasm_mips.h +416 -0
  55. data/lua-hooks/ext/luajit/dynasm/dasm_mips.lua +953 -0
  56. data/lua-hooks/ext/luajit/dynasm/dasm_ppc.h +419 -0
  57. data/lua-hooks/ext/luajit/dynasm/dasm_ppc.lua +1919 -0
  58. data/lua-hooks/ext/luajit/dynasm/dasm_proto.h +83 -0
  59. data/lua-hooks/ext/luajit/dynasm/dasm_x64.lua +12 -0
  60. data/lua-hooks/ext/luajit/dynasm/dasm_x86.h +471 -0
  61. data/lua-hooks/ext/luajit/dynasm/dasm_x86.lua +1945 -0
  62. data/lua-hooks/ext/luajit/dynasm/dynasm.lua +1094 -0
  63. data/lua-hooks/ext/luajit/etc/luajit.1 +88 -0
  64. data/lua-hooks/ext/luajit/etc/luajit.pc +25 -0
  65. data/lua-hooks/ext/luajit/src/Makefile +697 -0
  66. data/lua-hooks/ext/luajit/src/Makefile.dep +244 -0
  67. data/lua-hooks/ext/luajit/src/host/README +4 -0
  68. data/lua-hooks/ext/luajit/src/host/buildvm +0 -0
  69. data/lua-hooks/ext/luajit/src/host/buildvm.c +518 -0
  70. data/lua-hooks/ext/luajit/src/host/buildvm.h +105 -0
  71. data/lua-hooks/ext/luajit/src/host/buildvm.o +0 -0
  72. data/lua-hooks/ext/luajit/src/host/buildvm_arch.h +7449 -0
  73. data/lua-hooks/ext/luajit/src/host/buildvm_asm.c +345 -0
  74. data/lua-hooks/ext/luajit/src/host/buildvm_asm.o +0 -0
  75. data/lua-hooks/ext/luajit/src/host/buildvm_fold.c +229 -0
  76. data/lua-hooks/ext/luajit/src/host/buildvm_fold.o +0 -0
  77. data/lua-hooks/ext/luajit/src/host/buildvm_lib.c +457 -0
  78. data/lua-hooks/ext/luajit/src/host/buildvm_lib.o +0 -0
  79. data/lua-hooks/ext/luajit/src/host/buildvm_libbc.h +45 -0
  80. data/lua-hooks/ext/luajit/src/host/buildvm_peobj.c +368 -0
  81. data/lua-hooks/ext/luajit/src/host/buildvm_peobj.o +0 -0
  82. data/lua-hooks/ext/luajit/src/host/genlibbc.lua +197 -0
  83. data/lua-hooks/ext/luajit/src/host/genminilua.lua +428 -0
  84. data/lua-hooks/ext/luajit/src/host/minilua +0 -0
  85. data/lua-hooks/ext/luajit/src/host/minilua.c +7770 -0
  86. data/lua-hooks/ext/luajit/src/host/minilua.o +0 -0
  87. data/lua-hooks/ext/luajit/src/jit/bc.lua +190 -0
  88. data/lua-hooks/ext/luajit/src/jit/bcsave.lua +661 -0
  89. data/lua-hooks/ext/luajit/src/jit/dis_arm.lua +689 -0
  90. data/lua-hooks/ext/luajit/src/jit/dis_mips.lua +428 -0
  91. data/lua-hooks/ext/luajit/src/jit/dis_mipsel.lua +17 -0
  92. data/lua-hooks/ext/luajit/src/jit/dis_ppc.lua +591 -0
  93. data/lua-hooks/ext/luajit/src/jit/dis_x64.lua +17 -0
  94. data/lua-hooks/ext/luajit/src/jit/dis_x86.lua +838 -0
  95. data/lua-hooks/ext/luajit/src/jit/dump.lua +706 -0
  96. data/lua-hooks/ext/luajit/src/jit/p.lua +310 -0
  97. data/lua-hooks/ext/luajit/src/jit/v.lua +170 -0
  98. data/lua-hooks/ext/luajit/src/jit/vmdef.lua +362 -0
  99. data/lua-hooks/ext/luajit/src/jit/zone.lua +45 -0
  100. data/lua-hooks/ext/{lua → luajit/src}/lauxlib.h +10 -17
  101. data/lua-hooks/ext/luajit/src/lib_aux.c +356 -0
  102. data/lua-hooks/ext/luajit/src/lib_aux.o +0 -0
  103. data/lua-hooks/ext/luajit/src/lib_aux_dyn.o +0 -0
  104. data/lua-hooks/ext/luajit/src/lib_base.c +664 -0
  105. data/lua-hooks/ext/luajit/src/lib_base.o +0 -0
  106. data/lua-hooks/ext/luajit/src/lib_base_dyn.o +0 -0
  107. data/lua-hooks/ext/luajit/src/lib_bit.c +180 -0
  108. data/lua-hooks/ext/luajit/src/lib_bit.o +0 -0
  109. data/lua-hooks/ext/luajit/src/lib_bit_dyn.o +0 -0
  110. data/lua-hooks/ext/luajit/src/lib_debug.c +405 -0
  111. data/lua-hooks/ext/luajit/src/lib_debug.o +0 -0
  112. data/lua-hooks/ext/luajit/src/lib_debug_dyn.o +0 -0
  113. data/lua-hooks/ext/luajit/src/lib_ffi.c +872 -0
  114. data/lua-hooks/ext/luajit/src/lib_ffi.o +0 -0
  115. data/lua-hooks/ext/luajit/src/lib_ffi_dyn.o +0 -0
  116. data/lua-hooks/ext/luajit/src/lib_init.c +55 -0
  117. data/lua-hooks/ext/luajit/src/lib_init.o +0 -0
  118. data/lua-hooks/ext/luajit/src/lib_init_dyn.o +0 -0
  119. data/lua-hooks/ext/luajit/src/lib_io.c +541 -0
  120. data/lua-hooks/ext/luajit/src/lib_io.o +0 -0
  121. data/lua-hooks/ext/luajit/src/lib_io_dyn.o +0 -0
  122. data/lua-hooks/ext/luajit/src/lib_jit.c +767 -0
  123. data/lua-hooks/ext/luajit/src/lib_jit.o +0 -0
  124. data/lua-hooks/ext/luajit/src/lib_jit_dyn.o +0 -0
  125. data/lua-hooks/ext/luajit/src/lib_math.c +230 -0
  126. data/lua-hooks/ext/luajit/src/lib_math.o +0 -0
  127. data/lua-hooks/ext/luajit/src/lib_math_dyn.o +0 -0
  128. data/lua-hooks/ext/luajit/src/lib_os.c +292 -0
  129. data/lua-hooks/ext/luajit/src/lib_os.o +0 -0
  130. data/lua-hooks/ext/luajit/src/lib_os_dyn.o +0 -0
  131. data/lua-hooks/ext/luajit/src/lib_package.c +610 -0
  132. data/lua-hooks/ext/luajit/src/lib_package.o +0 -0
  133. data/lua-hooks/ext/luajit/src/lib_package_dyn.o +0 -0
  134. data/lua-hooks/ext/luajit/src/lib_string.c +752 -0
  135. data/lua-hooks/ext/luajit/src/lib_string.o +0 -0
  136. data/lua-hooks/ext/luajit/src/lib_string_dyn.o +0 -0
  137. data/lua-hooks/ext/luajit/src/lib_table.c +307 -0
  138. data/lua-hooks/ext/luajit/src/lib_table.o +0 -0
  139. data/lua-hooks/ext/luajit/src/lib_table_dyn.o +0 -0
  140. data/lua-hooks/ext/luajit/src/libluajit.a +0 -0
  141. data/lua-hooks/ext/luajit/src/libluajit.so +0 -0
  142. data/lua-hooks/ext/luajit/src/lj.supp +26 -0
  143. data/lua-hooks/ext/luajit/src/lj_alloc.c +1398 -0
  144. data/lua-hooks/ext/luajit/src/lj_alloc.h +17 -0
  145. data/lua-hooks/ext/luajit/src/lj_alloc.o +0 -0
  146. data/lua-hooks/ext/luajit/src/lj_alloc_dyn.o +0 -0
  147. data/lua-hooks/ext/luajit/src/lj_api.c +1210 -0
  148. data/lua-hooks/ext/luajit/src/lj_api.o +0 -0
  149. data/lua-hooks/ext/luajit/src/lj_api_dyn.o +0 -0
  150. data/lua-hooks/ext/luajit/src/lj_arch.h +509 -0
  151. data/lua-hooks/ext/luajit/src/lj_asm.c +2278 -0
  152. data/lua-hooks/ext/luajit/src/lj_asm.h +17 -0
  153. data/lua-hooks/ext/luajit/src/lj_asm.o +0 -0
  154. data/lua-hooks/ext/luajit/src/lj_asm_arm.h +2217 -0
  155. data/lua-hooks/ext/luajit/src/lj_asm_dyn.o +0 -0
  156. data/lua-hooks/ext/luajit/src/lj_asm_mips.h +1833 -0
  157. data/lua-hooks/ext/luajit/src/lj_asm_ppc.h +2015 -0
  158. data/lua-hooks/ext/luajit/src/lj_asm_x86.h +2634 -0
  159. data/lua-hooks/ext/luajit/src/lj_bc.c +14 -0
  160. data/lua-hooks/ext/luajit/src/lj_bc.h +265 -0
  161. data/lua-hooks/ext/luajit/src/lj_bc.o +0 -0
  162. data/lua-hooks/ext/luajit/src/lj_bc_dyn.o +0 -0
  163. data/lua-hooks/ext/luajit/src/lj_bcdef.h +220 -0
  164. data/lua-hooks/ext/luajit/src/lj_bcdump.h +68 -0
  165. data/lua-hooks/ext/luajit/src/lj_bcread.c +457 -0
  166. data/lua-hooks/ext/luajit/src/lj_bcread.o +0 -0
  167. data/lua-hooks/ext/luajit/src/lj_bcread_dyn.o +0 -0
  168. data/lua-hooks/ext/luajit/src/lj_bcwrite.c +361 -0
  169. data/lua-hooks/ext/luajit/src/lj_bcwrite.o +0 -0
  170. data/lua-hooks/ext/luajit/src/lj_bcwrite_dyn.o +0 -0
  171. data/lua-hooks/ext/luajit/src/lj_buf.c +234 -0
  172. data/lua-hooks/ext/luajit/src/lj_buf.h +105 -0
  173. data/lua-hooks/ext/luajit/src/lj_buf.o +0 -0
  174. data/lua-hooks/ext/luajit/src/lj_buf_dyn.o +0 -0
  175. data/lua-hooks/ext/luajit/src/lj_carith.c +429 -0
  176. data/lua-hooks/ext/luajit/src/lj_carith.h +37 -0
  177. data/lua-hooks/ext/luajit/src/lj_carith.o +0 -0
  178. data/lua-hooks/ext/luajit/src/lj_carith_dyn.o +0 -0
  179. data/lua-hooks/ext/luajit/src/lj_ccall.c +984 -0
  180. data/lua-hooks/ext/luajit/src/lj_ccall.h +178 -0
  181. data/lua-hooks/ext/luajit/src/lj_ccall.o +0 -0
  182. data/lua-hooks/ext/luajit/src/lj_ccall_dyn.o +0 -0
  183. data/lua-hooks/ext/luajit/src/lj_ccallback.c +712 -0
  184. data/lua-hooks/ext/luajit/src/lj_ccallback.h +25 -0
  185. data/lua-hooks/ext/luajit/src/lj_ccallback.o +0 -0
  186. data/lua-hooks/ext/luajit/src/lj_ccallback_dyn.o +0 -0
  187. data/lua-hooks/ext/luajit/src/lj_cconv.c +752 -0
  188. data/lua-hooks/ext/luajit/src/lj_cconv.h +70 -0
  189. data/lua-hooks/ext/luajit/src/lj_cconv.o +0 -0
  190. data/lua-hooks/ext/luajit/src/lj_cconv_dyn.o +0 -0
  191. data/lua-hooks/ext/luajit/src/lj_cdata.c +288 -0
  192. data/lua-hooks/ext/luajit/src/lj_cdata.h +76 -0
  193. data/lua-hooks/ext/luajit/src/lj_cdata.o +0 -0
  194. data/lua-hooks/ext/luajit/src/lj_cdata_dyn.o +0 -0
  195. data/lua-hooks/ext/luajit/src/lj_char.c +43 -0
  196. data/lua-hooks/ext/luajit/src/lj_char.h +42 -0
  197. data/lua-hooks/ext/luajit/src/lj_char.o +0 -0
  198. data/lua-hooks/ext/luajit/src/lj_char_dyn.o +0 -0
  199. data/lua-hooks/ext/luajit/src/lj_clib.c +418 -0
  200. data/lua-hooks/ext/luajit/src/lj_clib.h +29 -0
  201. data/lua-hooks/ext/luajit/src/lj_clib.o +0 -0
  202. data/lua-hooks/ext/luajit/src/lj_clib_dyn.o +0 -0
  203. data/lua-hooks/ext/luajit/src/lj_cparse.c +1862 -0
  204. data/lua-hooks/ext/luajit/src/lj_cparse.h +65 -0
  205. data/lua-hooks/ext/luajit/src/lj_cparse.o +0 -0
  206. data/lua-hooks/ext/luajit/src/lj_cparse_dyn.o +0 -0
  207. data/lua-hooks/ext/luajit/src/lj_crecord.c +1834 -0
  208. data/lua-hooks/ext/luajit/src/lj_crecord.h +38 -0
  209. data/lua-hooks/ext/luajit/src/lj_crecord.o +0 -0
  210. data/lua-hooks/ext/luajit/src/lj_crecord_dyn.o +0 -0
  211. data/lua-hooks/ext/luajit/src/lj_ctype.c +635 -0
  212. data/lua-hooks/ext/luajit/src/lj_ctype.h +461 -0
  213. data/lua-hooks/ext/luajit/src/lj_ctype.o +0 -0
  214. data/lua-hooks/ext/luajit/src/lj_ctype_dyn.o +0 -0
  215. data/lua-hooks/ext/luajit/src/lj_debug.c +699 -0
  216. data/lua-hooks/ext/luajit/src/lj_debug.h +65 -0
  217. data/lua-hooks/ext/luajit/src/lj_debug.o +0 -0
  218. data/lua-hooks/ext/luajit/src/lj_debug_dyn.o +0 -0
  219. data/lua-hooks/ext/luajit/src/lj_def.h +365 -0
  220. data/lua-hooks/ext/luajit/src/lj_dispatch.c +557 -0
  221. data/lua-hooks/ext/luajit/src/lj_dispatch.h +138 -0
  222. data/lua-hooks/ext/luajit/src/lj_dispatch.o +0 -0
  223. data/lua-hooks/ext/luajit/src/lj_dispatch_dyn.o +0 -0
  224. data/lua-hooks/ext/luajit/src/lj_emit_arm.h +356 -0
  225. data/lua-hooks/ext/luajit/src/lj_emit_mips.h +211 -0
  226. data/lua-hooks/ext/luajit/src/lj_emit_ppc.h +238 -0
  227. data/lua-hooks/ext/luajit/src/lj_emit_x86.h +462 -0
  228. data/lua-hooks/ext/luajit/src/lj_err.c +794 -0
  229. data/lua-hooks/ext/luajit/src/lj_err.h +41 -0
  230. data/lua-hooks/ext/luajit/src/lj_err.o +0 -0
  231. data/lua-hooks/ext/luajit/src/lj_err_dyn.o +0 -0
  232. data/lua-hooks/ext/luajit/src/lj_errmsg.h +190 -0
  233. data/lua-hooks/ext/luajit/src/lj_ff.h +18 -0
  234. data/lua-hooks/ext/luajit/src/lj_ffdef.h +209 -0
  235. data/lua-hooks/ext/luajit/src/lj_ffrecord.c +1247 -0
  236. data/lua-hooks/ext/luajit/src/lj_ffrecord.h +24 -0
  237. data/lua-hooks/ext/luajit/src/lj_ffrecord.o +0 -0
  238. data/lua-hooks/ext/luajit/src/lj_ffrecord_dyn.o +0 -0
  239. data/lua-hooks/ext/luajit/src/lj_folddef.h +1138 -0
  240. data/lua-hooks/ext/luajit/src/lj_frame.h +259 -0
  241. data/lua-hooks/ext/luajit/src/lj_func.c +185 -0
  242. data/lua-hooks/ext/luajit/src/lj_func.h +24 -0
  243. data/lua-hooks/ext/luajit/src/lj_func.o +0 -0
  244. data/lua-hooks/ext/luajit/src/lj_func_dyn.o +0 -0
  245. data/lua-hooks/ext/luajit/src/lj_gc.c +845 -0
  246. data/lua-hooks/ext/luajit/src/lj_gc.h +134 -0
  247. data/lua-hooks/ext/luajit/src/lj_gc.o +0 -0
  248. data/lua-hooks/ext/luajit/src/lj_gc_dyn.o +0 -0
  249. data/lua-hooks/ext/luajit/src/lj_gdbjit.c +787 -0
  250. data/lua-hooks/ext/luajit/src/lj_gdbjit.h +22 -0
  251. data/lua-hooks/ext/luajit/src/lj_gdbjit.o +0 -0
  252. data/lua-hooks/ext/luajit/src/lj_gdbjit_dyn.o +0 -0
  253. data/lua-hooks/ext/luajit/src/lj_ir.c +505 -0
  254. data/lua-hooks/ext/luajit/src/lj_ir.h +577 -0
  255. data/lua-hooks/ext/luajit/src/lj_ir.o +0 -0
  256. data/lua-hooks/ext/luajit/src/lj_ir_dyn.o +0 -0
  257. data/lua-hooks/ext/luajit/src/lj_ircall.h +321 -0
  258. data/lua-hooks/ext/luajit/src/lj_iropt.h +161 -0
  259. data/lua-hooks/ext/luajit/src/lj_jit.h +440 -0
  260. data/lua-hooks/ext/luajit/src/lj_lex.c +482 -0
  261. data/lua-hooks/ext/luajit/src/lj_lex.h +86 -0
  262. data/lua-hooks/ext/luajit/src/lj_lex.o +0 -0
  263. data/lua-hooks/ext/luajit/src/lj_lex_dyn.o +0 -0
  264. data/lua-hooks/ext/luajit/src/lj_lib.c +303 -0
  265. data/lua-hooks/ext/luajit/src/lj_lib.h +115 -0
  266. data/lua-hooks/ext/luajit/src/lj_lib.o +0 -0
  267. data/lua-hooks/ext/luajit/src/lj_lib_dyn.o +0 -0
  268. data/lua-hooks/ext/luajit/src/lj_libdef.h +414 -0
  269. data/lua-hooks/ext/luajit/src/lj_load.c +168 -0
  270. data/lua-hooks/ext/luajit/src/lj_load.o +0 -0
  271. data/lua-hooks/ext/luajit/src/lj_load_dyn.o +0 -0
  272. data/lua-hooks/ext/luajit/src/lj_mcode.c +386 -0
  273. data/lua-hooks/ext/luajit/src/lj_mcode.h +30 -0
  274. data/lua-hooks/ext/luajit/src/lj_mcode.o +0 -0
  275. data/lua-hooks/ext/luajit/src/lj_mcode_dyn.o +0 -0
  276. data/lua-hooks/ext/luajit/src/lj_meta.c +477 -0
  277. data/lua-hooks/ext/luajit/src/lj_meta.h +38 -0
  278. data/lua-hooks/ext/luajit/src/lj_meta.o +0 -0
  279. data/lua-hooks/ext/luajit/src/lj_meta_dyn.o +0 -0
  280. data/lua-hooks/ext/luajit/src/lj_obj.c +50 -0
  281. data/lua-hooks/ext/luajit/src/lj_obj.h +976 -0
  282. data/lua-hooks/ext/luajit/src/lj_obj.o +0 -0
  283. data/lua-hooks/ext/luajit/src/lj_obj_dyn.o +0 -0
  284. data/lua-hooks/ext/luajit/src/lj_opt_dce.c +78 -0
  285. data/lua-hooks/ext/luajit/src/lj_opt_dce.o +0 -0
  286. data/lua-hooks/ext/luajit/src/lj_opt_dce_dyn.o +0 -0
  287. data/lua-hooks/ext/luajit/src/lj_opt_fold.c +2488 -0
  288. data/lua-hooks/ext/luajit/src/lj_opt_fold.o +0 -0
  289. data/lua-hooks/ext/luajit/src/lj_opt_fold_dyn.o +0 -0
  290. data/lua-hooks/ext/luajit/src/lj_opt_loop.c +449 -0
  291. data/lua-hooks/ext/luajit/src/lj_opt_loop.o +0 -0
  292. data/lua-hooks/ext/luajit/src/lj_opt_loop_dyn.o +0 -0
  293. data/lua-hooks/ext/luajit/src/lj_opt_mem.c +935 -0
  294. data/lua-hooks/ext/luajit/src/lj_opt_mem.o +0 -0
  295. data/lua-hooks/ext/luajit/src/lj_opt_mem_dyn.o +0 -0
  296. data/lua-hooks/ext/luajit/src/lj_opt_narrow.c +652 -0
  297. data/lua-hooks/ext/luajit/src/lj_opt_narrow.o +0 -0
  298. data/lua-hooks/ext/luajit/src/lj_opt_narrow_dyn.o +0 -0
  299. data/lua-hooks/ext/luajit/src/lj_opt_sink.c +245 -0
  300. data/lua-hooks/ext/luajit/src/lj_opt_sink.o +0 -0
  301. data/lua-hooks/ext/luajit/src/lj_opt_sink_dyn.o +0 -0
  302. data/lua-hooks/ext/luajit/src/lj_opt_split.c +856 -0
  303. data/lua-hooks/ext/luajit/src/lj_opt_split.o +0 -0
  304. data/lua-hooks/ext/luajit/src/lj_opt_split_dyn.o +0 -0
  305. data/lua-hooks/ext/luajit/src/lj_parse.c +2725 -0
  306. data/lua-hooks/ext/luajit/src/lj_parse.h +18 -0
  307. data/lua-hooks/ext/luajit/src/lj_parse.o +0 -0
  308. data/lua-hooks/ext/luajit/src/lj_parse_dyn.o +0 -0
  309. data/lua-hooks/ext/luajit/src/lj_profile.c +368 -0
  310. data/lua-hooks/ext/luajit/src/lj_profile.h +21 -0
  311. data/lua-hooks/ext/luajit/src/lj_profile.o +0 -0
  312. data/lua-hooks/ext/luajit/src/lj_profile_dyn.o +0 -0
  313. data/lua-hooks/ext/luajit/src/lj_recdef.h +270 -0
  314. data/lua-hooks/ext/luajit/src/lj_record.c +2554 -0
  315. data/lua-hooks/ext/luajit/src/lj_record.h +45 -0
  316. data/lua-hooks/ext/luajit/src/lj_record.o +0 -0
  317. data/lua-hooks/ext/luajit/src/lj_record_dyn.o +0 -0
  318. data/lua-hooks/ext/luajit/src/lj_snap.c +870 -0
  319. data/lua-hooks/ext/luajit/src/lj_snap.h +34 -0
  320. data/lua-hooks/ext/luajit/src/lj_snap.o +0 -0
  321. data/lua-hooks/ext/luajit/src/lj_snap_dyn.o +0 -0
  322. data/lua-hooks/ext/luajit/src/lj_state.c +300 -0
  323. data/lua-hooks/ext/luajit/src/lj_state.h +35 -0
  324. data/lua-hooks/ext/luajit/src/lj_state.o +0 -0
  325. data/lua-hooks/ext/luajit/src/lj_state_dyn.o +0 -0
  326. data/lua-hooks/ext/luajit/src/lj_str.c +197 -0
  327. data/lua-hooks/ext/luajit/src/lj_str.h +27 -0
  328. data/lua-hooks/ext/luajit/src/lj_str.o +0 -0
  329. data/lua-hooks/ext/luajit/src/lj_str_dyn.o +0 -0
  330. data/lua-hooks/ext/luajit/src/lj_strfmt.c +554 -0
  331. data/lua-hooks/ext/luajit/src/lj_strfmt.h +125 -0
  332. data/lua-hooks/ext/luajit/src/lj_strfmt.o +0 -0
  333. data/lua-hooks/ext/luajit/src/lj_strfmt_dyn.o +0 -0
  334. data/lua-hooks/ext/luajit/src/lj_strscan.c +547 -0
  335. data/lua-hooks/ext/luajit/src/lj_strscan.h +39 -0
  336. data/lua-hooks/ext/luajit/src/lj_strscan.o +0 -0
  337. data/lua-hooks/ext/luajit/src/lj_strscan_dyn.o +0 -0
  338. data/lua-hooks/ext/luajit/src/lj_tab.c +666 -0
  339. data/lua-hooks/ext/luajit/src/lj_tab.h +73 -0
  340. data/lua-hooks/ext/luajit/src/lj_tab.o +0 -0
  341. data/lua-hooks/ext/luajit/src/lj_tab_dyn.o +0 -0
  342. data/lua-hooks/ext/luajit/src/lj_target.h +164 -0
  343. data/lua-hooks/ext/luajit/src/lj_target_arm.h +270 -0
  344. data/lua-hooks/ext/luajit/src/lj_target_arm64.h +97 -0
  345. data/lua-hooks/ext/luajit/src/lj_target_mips.h +260 -0
  346. data/lua-hooks/ext/luajit/src/lj_target_ppc.h +280 -0
  347. data/lua-hooks/ext/luajit/src/lj_target_x86.h +345 -0
  348. data/lua-hooks/ext/luajit/src/lj_trace.c +859 -0
  349. data/lua-hooks/ext/luajit/src/lj_trace.h +54 -0
  350. data/lua-hooks/ext/luajit/src/lj_trace.o +0 -0
  351. data/lua-hooks/ext/luajit/src/lj_trace_dyn.o +0 -0
  352. data/lua-hooks/ext/luajit/src/lj_traceerr.h +63 -0
  353. data/lua-hooks/ext/luajit/src/lj_udata.c +34 -0
  354. data/lua-hooks/ext/luajit/src/lj_udata.h +14 -0
  355. data/lua-hooks/ext/luajit/src/lj_udata.o +0 -0
  356. data/lua-hooks/ext/luajit/src/lj_udata_dyn.o +0 -0
  357. data/lua-hooks/ext/luajit/src/lj_vm.S +2730 -0
  358. data/lua-hooks/ext/luajit/src/lj_vm.h +114 -0
  359. data/lua-hooks/ext/luajit/src/lj_vm.o +0 -0
  360. data/lua-hooks/ext/luajit/src/lj_vm_dyn.o +0 -0
  361. data/lua-hooks/ext/luajit/src/lj_vmevent.c +58 -0
  362. data/lua-hooks/ext/luajit/src/lj_vmevent.h +59 -0
  363. data/lua-hooks/ext/luajit/src/lj_vmevent.o +0 -0
  364. data/lua-hooks/ext/luajit/src/lj_vmevent_dyn.o +0 -0
  365. data/lua-hooks/ext/luajit/src/lj_vmmath.c +152 -0
  366. data/lua-hooks/ext/luajit/src/lj_vmmath.o +0 -0
  367. data/lua-hooks/ext/luajit/src/lj_vmmath_dyn.o +0 -0
  368. data/lua-hooks/ext/luajit/src/ljamalg.c +96 -0
  369. data/lua-hooks/ext/{lua → luajit/src}/lua.h +12 -7
  370. data/lua-hooks/ext/luajit/src/lua.hpp +9 -0
  371. data/lua-hooks/ext/luajit/src/luaconf.h +156 -0
  372. data/lua-hooks/ext/luajit/src/luajit +0 -0
  373. data/lua-hooks/ext/luajit/src/luajit.c +570 -0
  374. data/lua-hooks/ext/luajit/src/luajit.h +79 -0
  375. data/lua-hooks/ext/luajit/src/luajit.o +0 -0
  376. data/lua-hooks/ext/luajit/src/lualib.h +43 -0
  377. data/lua-hooks/ext/luajit/src/msvcbuild.bat +114 -0
  378. data/lua-hooks/ext/luajit/src/ps4build.bat +103 -0
  379. data/lua-hooks/ext/luajit/src/psvitabuild.bat +93 -0
  380. data/lua-hooks/ext/luajit/src/vm_arm.dasc +4585 -0
  381. data/lua-hooks/ext/luajit/src/vm_arm64.dasc +3764 -0
  382. data/lua-hooks/ext/luajit/src/vm_mips.dasc +4355 -0
  383. data/lua-hooks/ext/luajit/src/vm_ppc.dasc +5252 -0
  384. data/lua-hooks/ext/luajit/src/vm_x64.dasc +4902 -0
  385. data/lua-hooks/ext/luajit/src/vm_x86.dasc +5710 -0
  386. data/lua-hooks/ext/luajit/src/xb1build.bat +101 -0
  387. data/lua-hooks/ext/luajit/src/xedkbuild.bat +92 -0
  388. data/lua-hooks/ext/luautf8/lutf8lib.c +3 -3
  389. data/lua-hooks/lib/boot.lua +37 -2
  390. metadata +372 -69
  391. data/lua-hooks/ext/bitop/README +0 -22
  392. data/lua-hooks/ext/bitop/bit.c +0 -189
  393. data/lua-hooks/ext/extconf.rb +0 -38
  394. data/lua-hooks/ext/lua/COPYRIGHT +0 -34
  395. data/lua-hooks/ext/lua/lapi.c +0 -1087
  396. data/lua-hooks/ext/lua/lapi.h +0 -16
  397. data/lua-hooks/ext/lua/lauxlib.c +0 -652
  398. data/lua-hooks/ext/lua/lbaselib.c +0 -659
  399. data/lua-hooks/ext/lua/lcode.c +0 -831
  400. data/lua-hooks/ext/lua/lcode.h +0 -76
  401. data/lua-hooks/ext/lua/ldblib.c +0 -398
  402. data/lua-hooks/ext/lua/ldebug.c +0 -638
  403. data/lua-hooks/ext/lua/ldebug.h +0 -33
  404. data/lua-hooks/ext/lua/ldo.c +0 -519
  405. data/lua-hooks/ext/lua/ldo.h +0 -57
  406. data/lua-hooks/ext/lua/ldump.c +0 -164
  407. data/lua-hooks/ext/lua/lfunc.c +0 -174
  408. data/lua-hooks/ext/lua/lfunc.h +0 -34
  409. data/lua-hooks/ext/lua/lgc.c +0 -710
  410. data/lua-hooks/ext/lua/lgc.h +0 -110
  411. data/lua-hooks/ext/lua/linit.c +0 -38
  412. data/lua-hooks/ext/lua/liolib.c +0 -556
  413. data/lua-hooks/ext/lua/llex.c +0 -463
  414. data/lua-hooks/ext/lua/llex.h +0 -81
  415. data/lua-hooks/ext/lua/llimits.h +0 -128
  416. data/lua-hooks/ext/lua/lmathlib.c +0 -263
  417. data/lua-hooks/ext/lua/lmem.c +0 -86
  418. data/lua-hooks/ext/lua/lmem.h +0 -49
  419. data/lua-hooks/ext/lua/loadlib.c +0 -705
  420. data/lua-hooks/ext/lua/loadlib_rel.c +0 -760
  421. data/lua-hooks/ext/lua/lobject.c +0 -214
  422. data/lua-hooks/ext/lua/lobject.h +0 -381
  423. data/lua-hooks/ext/lua/lopcodes.c +0 -102
  424. data/lua-hooks/ext/lua/lopcodes.h +0 -268
  425. data/lua-hooks/ext/lua/loslib.c +0 -243
  426. data/lua-hooks/ext/lua/lparser.c +0 -1339
  427. data/lua-hooks/ext/lua/lparser.h +0 -82
  428. data/lua-hooks/ext/lua/lstate.c +0 -214
  429. data/lua-hooks/ext/lua/lstate.h +0 -169
  430. data/lua-hooks/ext/lua/lstring.c +0 -111
  431. data/lua-hooks/ext/lua/lstring.h +0 -31
  432. data/lua-hooks/ext/lua/lstrlib.c +0 -871
  433. data/lua-hooks/ext/lua/ltable.c +0 -588
  434. data/lua-hooks/ext/lua/ltable.h +0 -40
  435. data/lua-hooks/ext/lua/ltablib.c +0 -287
  436. data/lua-hooks/ext/lua/ltm.c +0 -75
  437. data/lua-hooks/ext/lua/ltm.h +0 -54
  438. data/lua-hooks/ext/lua/lua.c +0 -392
  439. data/lua-hooks/ext/lua/lua.def +0 -131
  440. data/lua-hooks/ext/lua/lua.rc +0 -28
  441. data/lua-hooks/ext/lua/lua_dll.rc +0 -26
  442. data/lua-hooks/ext/lua/luac.c +0 -200
  443. data/lua-hooks/ext/lua/luac.rc +0 -1
  444. data/lua-hooks/ext/lua/luaconf.h +0 -763
  445. data/lua-hooks/ext/lua/luaconf.h.in +0 -724
  446. data/lua-hooks/ext/lua/luaconf.h.orig +0 -763
  447. data/lua-hooks/ext/lua/lualib.h +0 -53
  448. data/lua-hooks/ext/lua/lundump.c +0 -227
  449. data/lua-hooks/ext/lua/lundump.h +0 -36
  450. data/lua-hooks/ext/lua/lvm.c +0 -767
  451. data/lua-hooks/ext/lua/lvm.h +0 -36
  452. data/lua-hooks/ext/lua/lzio.c +0 -82
  453. data/lua-hooks/ext/lua/lzio.h +0 -67
  454. data/lua-hooks/ext/lua/print.c +0 -227
@@ -0,0 +1,325 @@
1
+ /* Copyright (C) 2004-2015 Mike Pall.
2
+ *
3
+ * You are welcome to use the general ideas of this design for your own sites.
4
+ * But please do not steal the stylesheet, the layout or the color scheme.
5
+ */
6
+ /* colorscheme:
7
+ *
8
+ * site | head #4162bf/white | #6078bf/#e6ecff
9
+ * ------+------ ----------------+-------------------
10
+ * nav | main #bfcfff | #e6ecff/black
11
+ *
12
+ * nav: hiback loback #c5d5ff #b9c9f9
13
+ * hiborder loborder #e6ecff #97a7d7
14
+ * link hover #2142bf #ff0000
15
+ *
16
+ * link: link visited hover #2142bf #8122bf #ff0000
17
+ *
18
+ * main: boxback boxborder #f0f4ff #bfcfff
19
+ */
20
+ body {
21
+ font-family: Verdana, Arial, Helvetica, sans-serif;
22
+ font-size: 10pt;
23
+ margin: 0;
24
+ padding: 0;
25
+ border: none;
26
+ background: #e0e0e0;
27
+ color: #000000;
28
+ }
29
+ a:link {
30
+ text-decoration: none;
31
+ background: transparent;
32
+ color: #2142bf;
33
+ }
34
+ a:visited {
35
+ text-decoration: none;
36
+ background: transparent;
37
+ color: #8122bf;
38
+ }
39
+ a:hover, a:active {
40
+ text-decoration: underline;
41
+ background: transparent;
42
+ color: #ff0000;
43
+ }
44
+ h1, h2, h3 {
45
+ font-weight: bold;
46
+ text-align: left;
47
+ margin: 0.5em 0;
48
+ padding: 0;
49
+ background: transparent;
50
+ }
51
+ h1 {
52
+ font-size: 200%;
53
+ line-height: 3em; /* really 6em relative to body, match #site span */
54
+ margin: 0;
55
+ }
56
+ h2 {
57
+ font-size: 150%;
58
+ color: #606060;
59
+ }
60
+ h3 {
61
+ font-size: 125%;
62
+ color: #404040;
63
+ }
64
+ p {
65
+ max-width: 600px;
66
+ margin: 0 0 0.5em 0;
67
+ padding: 0;
68
+ }
69
+ b {
70
+ color: #404040;
71
+ }
72
+ ul, ol {
73
+ max-width: 600px;
74
+ margin: 0.5em 0;
75
+ padding: 0 0 0 2em;
76
+ }
77
+ ul {
78
+ list-style: outside square;
79
+ }
80
+ ol {
81
+ list-style: outside decimal;
82
+ }
83
+ li {
84
+ margin: 0;
85
+ padding: 0;
86
+ }
87
+ dl {
88
+ max-width: 600px;
89
+ margin: 1em 0;
90
+ padding: 1em;
91
+ border: 1px solid #bfcfff;
92
+ background: #f0f4ff;
93
+ }
94
+ dt {
95
+ font-weight: bold;
96
+ margin: 0;
97
+ padding: 0;
98
+ }
99
+ dt sup {
100
+ float: right;
101
+ margin-left: 1em;
102
+ color: #808080;
103
+ }
104
+ dt a:visited {
105
+ text-decoration: none;
106
+ color: #2142bf;
107
+ }
108
+ dt a:hover, dt a:active {
109
+ text-decoration: none;
110
+ color: #ff0000;
111
+ }
112
+ dd {
113
+ margin: 0.5em 0 0 2em;
114
+ padding: 0;
115
+ }
116
+ div.tablewrap { /* for IE *sigh* */
117
+ max-width: 600px;
118
+ }
119
+ table {
120
+ table-layout: fixed;
121
+ border-spacing: 0;
122
+ border-collapse: collapse;
123
+ max-width: 600px;
124
+ width: 100%;
125
+ margin: 1em 0;
126
+ padding: 0;
127
+ border: 1px solid #bfcfff;
128
+ }
129
+ tr {
130
+ margin: 0;
131
+ padding: 0;
132
+ border: none;
133
+ }
134
+ tr.odd {
135
+ background: #f0f4ff;
136
+ }
137
+ tr.separate td {
138
+ border-top: 1px solid #bfcfff;
139
+ }
140
+ td {
141
+ text-align: left;
142
+ margin: 0;
143
+ padding: 0.2em 0.5em;
144
+ border: none;
145
+ }
146
+ tt, code, kbd, samp {
147
+ font-family: Courier New, Courier, monospace;
148
+ line-height: 1.2;
149
+ font-size: 110%;
150
+ }
151
+ kbd {
152
+ font-weight: bolder;
153
+ }
154
+ blockquote, pre {
155
+ max-width: 600px;
156
+ margin: 1em 2em;
157
+ padding: 0;
158
+ }
159
+ pre {
160
+ line-height: 1.1;
161
+ }
162
+ pre.code {
163
+ line-height: 1.4;
164
+ margin: 0.5em 0 1em 0.5em;
165
+ padding: 0.5em 1em;
166
+ border: 1px solid #bfcfff;
167
+ background: #f0f4ff;
168
+ }
169
+ pre.mark {
170
+ padding-left: 2em;
171
+ }
172
+ span.codemark {
173
+ position:absolute;
174
+ left: 16em;
175
+ color: #4040c0;
176
+ }
177
+ span.mark {
178
+ color: #4040c0;
179
+ font-family: Courier New, Courier, monospace;
180
+ line-height: 1.1;
181
+ }
182
+ img {
183
+ border: none;
184
+ vertical-align: baseline;
185
+ margin: 0;
186
+ padding: 0;
187
+ }
188
+ img.left {
189
+ float: left;
190
+ margin: 0.5em 1em 0.5em 0;
191
+ }
192
+ img.right {
193
+ float: right;
194
+ margin: 0.5em 0 0.5em 1em;
195
+ }
196
+ .indent {
197
+ padding-left: 1em;
198
+ }
199
+ .flush {
200
+ clear: both;
201
+ visibility: hidden;
202
+ }
203
+ .hide, .noscreen {
204
+ display: none !important;
205
+ }
206
+ .ext {
207
+ color: #ff8000;
208
+ }
209
+ .new {
210
+ font-size: 6pt;
211
+ vertical-align: middle;
212
+ background: #ff8000;
213
+ color: #ffffff;
214
+ }
215
+ #site {
216
+ clear: both;
217
+ float: left;
218
+ width: 13em;
219
+ text-align: center;
220
+ font-weight: bold;
221
+ margin: 0;
222
+ padding: 0;
223
+ background: transparent;
224
+ color: #ffffff;
225
+ }
226
+ #site a {
227
+ font-size: 200%;
228
+ }
229
+ #site a:link, #site a:visited {
230
+ text-decoration: none;
231
+ font-weight: bold;
232
+ background: transparent;
233
+ color: #ffffff;
234
+ }
235
+ #site span {
236
+ line-height: 3em; /* really 6em relative to body, match h1 */
237
+ }
238
+ #logo {
239
+ color: #ffb380;
240
+ }
241
+ #head {
242
+ margin: 0;
243
+ padding: 0 0 0 2em;
244
+ border-left: solid 13em #4162bf;
245
+ border-right: solid 3em #6078bf;
246
+ background: #6078bf;
247
+ color: #e6ecff;
248
+ }
249
+ #nav {
250
+ clear: both;
251
+ float: left;
252
+ overflow: hidden;
253
+ text-align: left;
254
+ line-height: 1.5;
255
+ width: 13em;
256
+ padding-top: 1em;
257
+ background: transparent;
258
+ }
259
+ #nav ul {
260
+ list-style: none outside;
261
+ margin: 0;
262
+ padding: 0;
263
+ }
264
+ #nav li {
265
+ margin: 0;
266
+ padding: 0;
267
+ }
268
+ #nav a {
269
+ display: block;
270
+ text-decoration: none;
271
+ font-weight: bold;
272
+ margin: 0;
273
+ padding: 2px 1em;
274
+ border-top: 1px solid transparent;
275
+ border-bottom: 1px solid transparent;
276
+ background: transparent;
277
+ color: #2142bf;
278
+ }
279
+ #nav a:hover, #nav a:active {
280
+ text-decoration: none;
281
+ border-top: 1px solid #97a7d7;
282
+ border-bottom: 1px solid #e6ecff;
283
+ background: #b9c9f9;
284
+ color: #ff0000;
285
+ }
286
+ #nav a.current, #nav a.current:hover, #nav a.current:active {
287
+ border-top: 1px solid #e6ecff;
288
+ border-bottom: 1px solid #97a7d7;
289
+ background: #c5d5ff;
290
+ color: #2142bf;
291
+ }
292
+ #nav ul ul a {
293
+ padding: 0 1em 0 1.7em;
294
+ }
295
+ #nav ul ul ul a {
296
+ padding: 0 0.5em 0 2.4em;
297
+ }
298
+ #main {
299
+ line-height: 1.5;
300
+ text-align: left;
301
+ margin: 0;
302
+ padding: 1em 2em;
303
+ border-left: solid 13em #bfcfff;
304
+ border-right: solid 3em #e6ecff;
305
+ background: #e6ecff;
306
+ }
307
+ #foot {
308
+ clear: both;
309
+ font-size: 80%;
310
+ text-align: center;
311
+ margin: 0;
312
+ padding: 0.5em;
313
+ background: #6078bf;
314
+ color: #ffffff;
315
+ }
316
+ #foot a:link, #foot a:visited {
317
+ text-decoration: underline;
318
+ background: transparent;
319
+ color: #ffffff;
320
+ }
321
+ #foot a:hover, #foot a:active {
322
+ text-decoration: underline;
323
+ background: transparent;
324
+ color: #bfcfff;
325
+ }
@@ -0,0 +1,804 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <title>LuaJIT Change History</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <meta name="Author" content="Mike Pall">
7
+ <meta name="Copyright" content="Copyright (C) 2005-2015, Mike Pall">
8
+ <meta name="Language" content="en">
9
+ <link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
10
+ <link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
11
+ <style type="text/css">
12
+ div.major { max-width: 600px; padding: 1em; margin: 1em 0 1em 0; }
13
+ </style>
14
+ </head>
15
+ <body>
16
+ <div id="site">
17
+ <a href="http://luajit.org"><span>Lua<span id="logo">JIT</span></span></a>
18
+ </div>
19
+ <div id="head">
20
+ <h1>LuaJIT Change History</h1>
21
+ </div>
22
+ <div id="nav">
23
+ <ul><li>
24
+ <a href="luajit.html">LuaJIT</a>
25
+ <ul><li>
26
+ <a href="http://luajit.org/download.html">Download <span class="ext">&raquo;</span></a>
27
+ </li><li>
28
+ <a href="install.html">Installation</a>
29
+ </li><li>
30
+ <a href="running.html">Running</a>
31
+ </li></ul>
32
+ </li><li>
33
+ <a href="extensions.html">Extensions</a>
34
+ <ul><li>
35
+ <a href="ext_ffi.html">FFI Library</a>
36
+ <ul><li>
37
+ <a href="ext_ffi_tutorial.html">FFI Tutorial</a>
38
+ </li><li>
39
+ <a href="ext_ffi_api.html">ffi.* API</a>
40
+ </li><li>
41
+ <a href="ext_ffi_semantics.html">FFI Semantics</a>
42
+ </li></ul>
43
+ </li><li>
44
+ <a href="ext_jit.html">jit.* Library</a>
45
+ </li><li>
46
+ <a href="ext_c_api.html">Lua/C API</a>
47
+ </li><li>
48
+ <a href="ext_profiler.html">Profiler</a>
49
+ </li></ul>
50
+ </li><li>
51
+ <a href="status.html">Status</a>
52
+ <ul><li>
53
+ <a class="current" href="changes.html">Changes</a>
54
+ </li></ul>
55
+ </li><li>
56
+ <a href="faq.html">FAQ</a>
57
+ </li><li>
58
+ <a href="http://luajit.org/performance.html">Performance <span class="ext">&raquo;</span></a>
59
+ </li><li>
60
+ <a href="http://wiki.luajit.org/">Wiki <span class="ext">&raquo;</span></a>
61
+ </li><li>
62
+ <a href="http://luajit.org/list.html">Mailing List <span class="ext">&raquo;</span></a>
63
+ </li></ul>
64
+ </div>
65
+ <div id="main">
66
+ <p>
67
+ This is a list of changes between the released versions of LuaJIT.<br>
68
+ The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT&nbsp;2.0.4</strong>.<br>
69
+ </p>
70
+ <p>
71
+ Please check the
72
+ <a href="http://luajit.org/changes.html"><span class="ext">&raquo;</span>&nbsp;Online Change History</a>
73
+ to see whether newer versions are available.
74
+ </p>
75
+
76
+ <div class="major" style="background: #d0d0ff;">
77
+ <h2 id="LuaJIT-2.1.0-beta1">LuaJIT 2.1.0-beta1 &mdash; 2015-08-25</h2>
78
+ <p>
79
+ This is a brief summary of the major changes in LuaJIT 2.1 compared to 2.0.
80
+ Please take a look at the commit history for more details.
81
+ </p>
82
+ <ul>
83
+ <li>Changes to the VM core:
84
+ <ul>
85
+ <li>Add low-overhead profiler (<tt>-jp</tt>).</li>
86
+ <li>Add <tt>LJ_GC64</tt> mode: 64 bit GC object references (really: 47 bit). Interpreter-only for now.</li>
87
+ <li>Add <tt>LJ_FR2</tt> mode: Two-slot frame info. Required by <tt>LJ_GC64</tt> mode.</li>
88
+ <li>Add <tt>table.new()</tt> and <tt>table.clear()</tt>.</li>
89
+ <li>Parse binary number literals (<tt>0bxxx</tt>).</li>
90
+ </ul></li>
91
+ <li>Improvements to the JIT compiler:
92
+ <ul>
93
+ <li>Add trace stitching (disabled for now).</li>
94
+ <li>Compile various builtins: <tt>string.char()</tt>, <tt>string.reverse()</tt>, <tt>string.lower()</tt>, <tt>string.upper()</tt>, <tt>string.rep()</tt>, <tt>string.format()</tt>, <tt>table.concat()</tt>, <tt>bit.tohex()</tt>, <tt>getfenv(0)</tt>, <tt>debug.getmetatable()</tt>.</li>
95
+ <li>Compile <tt>string.find()</tt> for fixed string searches (no patterns).</li>
96
+ <li>Compile <tt>BC_TSETM</tt>, e.g. <tt>{1,2,3,f()}</tt>.</li>
97
+ <li>Compile string concatenations (<tt>BC_CAT</tt>).</li>
98
+ <li>Compile <tt>__concat</tt> metamethod.</li>
99
+ <li>Various minor optimizations.</li>
100
+ </ul></li>
101
+ <li>Internal Changes:
102
+ <ul>
103
+ <li>Add support for embedding LuaJIT bytecode for builtins.</li>
104
+ <li>Replace various builtins with embedded bytecode.</li>
105
+ <li>Refactor string buffers and string formatting.</li>
106
+ <li>Remove obsolete non-truncating number to integer conversions.</li>
107
+ </ul></li>
108
+ <li>Ports:
109
+ <ul>
110
+ <li>Add Xbox One port (<tt>LJ_GC64</tt> mode).</li>
111
+ <li>ARM64: Add port of the interpreter (<tt>LJ_GC64</tt> mode).</li>
112
+ <li>x64: Add separate port of the interpreter to <tt>LJ_GC64</tt> mode.</li>
113
+ <li>x86/x64: Drop internal x87 math functions. Use libm functions.</li>
114
+ <li>x86: Remove x87 support from interpreter. SSE2 is mandatory now.</li>
115
+ <li>PPC/e500: Drop support for this architecture.</li>
116
+ </ul></li>
117
+ <li>FFI library:
118
+ <ul>
119
+ <li>FFI: Add 64 bit bitwise operations.</li>
120
+ <li>FFI: Compile VLA/VLS and large cdata allocations with default initialization.</li>
121
+ <li>FFI: Compile conversions from functions to function pointers.</li>
122
+ <li>FFI: Compile lightuserdata to <tt>void *</tt> conversion.</li>
123
+ <li>FFI: Compile <tt>ffi.gc(cdata, nil)</tt>, too.</li>
124
+ <li>FFI: Add <tt>ffi.typeinfo()</tt>.</li>
125
+ </ul></li>
126
+ </ul>
127
+ </div>
128
+
129
+ <div class="major" style="background: #ffffd0;">
130
+ <h2 id="LuaJIT-2.0.4">LuaJIT 2.0.4 &mdash; 2015-05-14</h2>
131
+ <ul>
132
+ <li>Fix stack check in narrowing optimization.</li>
133
+ <li>Fix Lua/C API typecheck error for special indexes.</li>
134
+ <li>Fix string to number conversion.</li>
135
+ <li>Fix lexer error for chunks without tokens.</li>
136
+ <li>Don't compile <tt>IR_RETF</tt> after <tt>CALLT</tt> to ff with-side effects.</li>
137
+ <li>Fix <tt>BC_UCLO</tt>/<tt>BC_JMP</tt> join optimization in Lua parser.</li>
138
+ <li>Fix corner case in string to number conversion.</li>
139
+ <li>Gracefully handle <tt>lua_error()</tt> for a suspended coroutine.</li>
140
+ <li>Avoid error messages when building with Clang.</li>
141
+ <li>Fix snapshot #0 handling for traces with a stack check on entry.</li>
142
+ <li>Fix fused constant loads under high register pressure.</li>
143
+ <li>Invalidate backpropagation cache after DCE.</li>
144
+ <li>Fix ABC elimination.</li>
145
+ <li>Fix debug info for main chunk of stripped bytecode.</li>
146
+ <li>Fix FOLD rule for <tt>string.sub(s, ...) == k</tt>.</li>
147
+ <li>Fix FOLD rule for <tt>STRREF</tt> of <tt>SNEW</tt>.</li>
148
+ <li>Fix frame traversal while searching for error function.</li>
149
+ <li>Prevent GC estimate miscalculation due to buffer growth.</li>
150
+ <li>Prevent adding side traces for stack checks.</li>
151
+ <li>Fix top slot calculation for snapshots with continuations.</li>
152
+ <li>Fix check for reuse of SCEV results in <tt>FORL</tt>.</li>
153
+ <li>Add PS Vita port.</li>
154
+ <li>Fix compatibility issues with Illumos.</li>
155
+ <li>Fix DragonFly build (unsupported).</li>
156
+ <li>OpenBSD/x86: Better executable memory allocation for W^X mode.</li>
157
+ <li>x86: Fix argument checks for <tt>ipairs()</tt> iterator.</li>
158
+ <li>x86: <tt>lj_math_random_step()</tt> clobbers XMM regs on OSX Clang.</li>
159
+ <li>x86: Fix code generation for unused result of <tt>math.random()</tt>.</li>
160
+ <li>x64: Allow building with <tt>LUAJIT_USE_SYSMALLOC</tt> and <tt>LUAJIT_USE_VALGRIND</tt>.</li>
161
+ <li>x86/x64: Fix argument check for bit shifts.</li>
162
+ <li>x86/x64: Fix code generation for fused test/arith ops.</li>
163
+ <li>ARM: Fix write barrier check in <tt>BC_USETS</tt>.</li>
164
+ <li>PPC: Fix red zone overflow in machine code generation.</li>
165
+ <li>PPC: Don't use <tt>mcrxr</tt> on PPE.</li>
166
+ <li>Various archs: Fix excess stack growth in interpreter.</li>
167
+ <li>FFI: Fix FOLD rule for <tt>TOBIT</tt> + <tt>CONV num.u32</tt>.</li>
168
+ <li>FFI: Prevent DSE across <tt>ffi.string()</tt>.</li>
169
+ <li>FFI: No meta fallback when indexing pointer to incomplete struct.</li>
170
+ <li>FFI: Fix initialization of unions of subtypes.</li>
171
+ <li>FFI: Fix cdata vs. non-cdata arithmetic and comparisons.</li>
172
+ <li>FFI: Fix <tt>__index</tt>/<tt>__newindex</tt> metamethod resolution for ctypes.</li>
173
+ <li>FFI: Fix compilation of reference field access.</li>
174
+ <li>FFI: Fix frame traversal for backtraces with FFI callbacks.</li>
175
+ <li>FFI: Fix recording of indexing a struct pointer ctype object itself.</li>
176
+ <li>FFI: Allow non-scalar cdata to be compared for equality by address.</li>
177
+ <li>FFI: Fix pseudo type conversions for type punning.</li>
178
+ </ul>
179
+
180
+ <h2 id="LuaJIT-2.0.3">LuaJIT 2.0.3 &mdash; 2014-03-12</h2>
181
+ <ul>
182
+ <li>Add PS4 port.</li>
183
+ <li>Add support for multilib distro builds.</li>
184
+ <li>Fix OSX build.</li>
185
+ <li>Fix MinGW build.</li>
186
+ <li>Fix Xbox 360 build.</li>
187
+ <li>Improve ULOAD forwarding for open upvalues.</li>
188
+ <li>Fix GC steps threshold handling when called by JIT-compiled code.</li>
189
+ <li>Fix argument checks for <tt>math.deg()</tt> and <tt>math.rad()</tt>.</li>
190
+ <li>Fix <tt>jit.flush(func|true)</tt>.</li>
191
+ <li>Respect <tt>jit.off(func)</tt> when returning to a function, too.</li>
192
+ <li>Fix compilation of <tt>string.byte(s, nil, n)</tt>.</li>
193
+ <li>Fix line number for relocated bytecode after closure fixup</li>
194
+ <li>Fix frame traversal for backtraces.</li>
195
+ <li>Fix ABC elimination.</li>
196
+ <li>Fix handling of redundant PHIs.</li>
197
+ <li>Fix snapshot restore for exit to function header.</li>
198
+ <li>Fix type punning alias analysis for constified pointers</li>
199
+ <li>Fix call unroll checks in the presence of metamethod frames.</li>
200
+ <li>Fix initial maxslot for down-recursive traces.</li>
201
+ <li>Prevent BASE register coalescing if parent uses <tt>IR_RETF</tt>.</li>
202
+ <li>Don't purge modified function from stack slots in <tt>BC_RET</tt>.</li>
203
+ <li>Fix recording of <tt>BC_VARG</tt>.</li>
204
+ <li>Don't access dangling reference to reallocated IR.</li>
205
+ <li>Fix frame depth display for bytecode dump in <tt>-jdump</tt>.</li>
206
+ <li>ARM: Fix register allocation when rematerializing FPRs.</li>
207
+ <li>x64: Fix store to upvalue for lightuserdata values.</li>
208
+ <li>FFI: Add missing GC steps for callback argument conversions.</li>
209
+ <li>FFI: Properly unload loaded DLLs.</li>
210
+ <li>FFI: Fix argument checks for <tt>ffi.string()</tt>.</li>
211
+ <li>FFI/x64: Fix passing of vector arguments to calls.</li>
212
+ <li>FFI: Rehash finalizer table after GC cycle, if needed.</li>
213
+ <li>FFI: Fix <tt>cts-&gt;L</tt> for cdata unsinking in snapshot restore.</li>
214
+ </ul>
215
+
216
+ <h2 id="LuaJIT-2.0.2">LuaJIT 2.0.2 &mdash; 2013-06-03</h2>
217
+ <ul>
218
+ <li>Fix memory access check for fast string interning.</li>
219
+ <li>Fix MSVC intrinsics for older versions.</li>
220
+ <li>Add missing GC steps for <tt>io.*</tt> functions.</li>
221
+ <li>Fix spurious red zone overflows in machine code generation.</li>
222
+ <li>Fix jump-range constrained mcode allocation.</li>
223
+ <li>Inhibit DSE for implicit loads via calls.</li>
224
+ <li>Fix builtin string to number conversion for overflow digits.</li>
225
+ <li>Fix optional argument handling while recording builtins.</li>
226
+ <li>Fix optional argument handling in <tt>table.concat()</tt>.</li>
227
+ <li>Add partial support for building with MingW64 GCC 4.8-SEH.</li>
228
+ <li>Add missing PHI barrier to <tt>string.sub(str, a, b) == kstr</tt> FOLD rule.</li>
229
+ <li>Fix compatibility issues with Illumos.</li>
230
+ <li>ARM: Fix cache flush/sync for exit stubs of JIT-compiled code.</li>
231
+ <li>MIPS: Fix cache flush/sync for JIT-compiled code jump area.</li>
232
+ <li>PPC: Add <tt>plt</tt> suffix for external calls from assembler code.</li>
233
+ <li>FFI: Fix snapshot substitution in SPLIT pass.</li>
234
+ <li>FFI/x86: Fix register allocation for 64 bit comparisons.</li>
235
+ <li>FFI: Fix tailcall in lowest frame to C&nbsp;function with bool result.</li>
236
+ <li>FFI: Ignore <tt>long</tt> type specifier in <tt>ffi.istype()</tt>.</li>
237
+ <li>FFI: Fix calling conventions for 32 bit OSX and iOS simulator (struct returns).</li>
238
+ <li>FFI: Fix calling conventions for ARM hard-float EABI (nested structs).</li>
239
+ <li>FFI: Improve error messages for arithmetic and comparison operators.</li>
240
+ <li>FFI: Insert no-op type conversion for pointer to integer cast.</li>
241
+ <li>FFI: Fix unroll limit for <tt>ffi.fill()</tt>.</li>
242
+ <li>FFI: Must sink <tt>XBAR</tt> together with <tt>XSTORE</tt>s.</li>
243
+ <li>FFI: Preserve intermediate string for <tt>const&nbsp;char&nbsp;*</tt> conversion.</li>
244
+ </ul>
245
+
246
+ <h2 id="LuaJIT-2.0.1">LuaJIT 2.0.1 &mdash; 2013-02-19</h2>
247
+ <ul>
248
+ <li>Don't clear frame for out-of-memory error.</li>
249
+ <li>Leave hook when resume catches error thrown from hook.</li>
250
+ <li>Add missing GC steps for template table creation.</li>
251
+ <li>Fix discharge order of comparisons in Lua parser.</li>
252
+ <li>Improve buffer handling for <tt>io.read()</tt>.</li>
253
+ <li>OSX: Add support for Mach-O object files to <tt>-b</tt> option.</li>
254
+ <li>Fix PS3 port.</li>
255
+ <li>Fix/enable Xbox 360 port.</li>
256
+ <li>x86/x64: Always mark ref for shift count as non-weak.</li>
257
+ <li>x64: Don't fuse implicitly 32-to-64 extended operands.</li>
258
+ <li>ARM: Fix armhf call argument handling.</li>
259
+ <li>ARM: Fix code generation for integer math.min/math.max.</li>
260
+ <li>PPC/e500: Fix <tt>lj_vm_floor()</tt> for Inf/NaN.</li>
261
+ <li>FFI: Change priority of table initializer variants for structs.</li>
262
+ <li>FFI: Fix code generation for bool call result check on x86/x64.</li>
263
+ <li>FFI: Load FFI library on-demand for bytecode with cdata literals.</li>
264
+ <li>FFI: Fix handling of qualified transparent structs/unions.</li>
265
+ </ul>
266
+
267
+ <h2 id="LuaJIT-2.0.0">LuaJIT 2.0.0 &mdash; 2012-11-08</h2>
268
+ <ul>
269
+ <li>Correctness and completeness:
270
+ <ul>
271
+ <li>Fix Android/x86 build.</li>
272
+ <li>Fix recording of equality comparisons with <tt>__eq</tt> metamethods.</li>
273
+ <li>Fix detection of immutable upvalues.</li>
274
+ <li>Replace error with PANIC for callbacks from JIT-compiled code.</li>
275
+ <li>Fix builtin string to number conversion for <tt>INT_MIN</tt>.</li>
276
+ <li>Don't create unneeded array part for template tables.</li>
277
+ <li>Fix <tt>CONV.num.int</tt> sinking.</li>
278
+ <li>Don't propagate implicitly widened number to index metamethods.</li>
279
+ <li>ARM: Fix ordered comparisons of number vs. non-number.</li>
280
+ <li>FFI: Fix code generation for replay of sunk float fields.</li>
281
+ <li>FFI: Fix signedness of bool.</li>
282
+ <li>FFI: Fix recording of bool call result check on x86/x64.</li>
283
+ <li>FFI: Fix stack-adjustment for <tt>__thiscall</tt> callbacks.</li>
284
+ </ul></li>
285
+ </ul>
286
+
287
+ <h2 id="LuaJIT-2.0.0-beta11">LuaJIT 2.0.0-beta11 &mdash; 2012-10-16</h2>
288
+ <ul>
289
+ <li>New features:
290
+ <ul>
291
+ <li>Use ARM VFP instructions, if available (build-time detection).</li>
292
+ <li>Add support for ARM hard-float EABI (<tt>armhf</tt>).</li>
293
+ <li>Add PS3 port.</li>
294
+ <li>Add many features from Lua&nbsp;5.2, e.g. <tt>goto</tt>/labels.
295
+ Refer to <a href="extensions.html#lua52">this list</a>.</li>
296
+ <li>FFI: Add parameterized C types.</li>
297
+ <li>FFI: Add support for copy constructors.</li>
298
+ <li>FFI: Equality comparisons never raise an error (treat as unequal instead).</li>
299
+ <li>FFI: Box all accessed or returned enums.</li>
300
+ <li>FFI: Check for <tt>__new</tt> metamethod when calling a constructor.</li>
301
+ <li>FFI: Handle <tt>__pairs</tt>/<tt>__ipairs</tt> metamethods for cdata objects.</li>
302
+ <li>FFI: Convert <tt>io.*</tt> file handle to <tt>FILE *</tt> pointer (but as a <tt>void *</tt>).</li>
303
+ <li>FFI: Detect and support type punning through unions.</li>
304
+ <li>FFI: Improve various error messages.</li>
305
+ </ul></li>
306
+ <li>Build-system reorganization:
307
+ <ul>
308
+ <li>Reorganize directory layout:<br>
309
+ <tt>lib/*</tt> &rarr; <tt>src/jit/*</tt><br>
310
+ <tt>src/buildvm_*.dasc</tt> &rarr; <tt>src/vm_*.dasc</tt><br>
311
+ <tt>src/buildvm_*.h</tt> &rarr; removed<br>
312
+ <tt>src/buildvm*</tt> &rarr; <tt>src/host/*</tt></li>
313
+ <li>Add minified Lua interpreter plus Lua BitOp (<tt>minilua</tt>) to run DynASM.</li>
314
+ <li>Change DynASM bit operations to use Lua BitOp</li>
315
+ <li>Translate only <tt>vm_*.dasc</tt> for detected target architecture.</li>
316
+ <li>Improve target detection for <tt>msvcbuild.bat</tt>.</li>
317
+ <li>Fix build issues on Cygwin and MinGW with optional MSys.</li>
318
+ <li>Handle cross-compiles with FPU/no-FPU or hard-fp/soft-fp ABI mismatch.</li>
319
+ <li>Remove some library functions for no-JIT/no-FFI builds.</li>
320
+ <li>Add uninstall target to top-level Makefile.</li>
321
+ </ul></li>
322
+ <li>Correctness and completeness:
323
+ <ul>
324
+ <li>Preserve snapshot #0 PC for all traces.</li>
325
+ <li>Fix argument checks for <tt>coroutine.create()</tt>.</li>
326
+ <li>Command line prints version and JIT status to <tt>stdout</tt>, not <tt>stderr</tt>.</li>
327
+ <li>Fix userdata <tt>__gc</tt> separations at Lua state close.</li>
328
+ <li>Fix <tt>TDUP</tt> to <tt>HLOAD</tt> forwarding for <tt>LJ_DUALNUM</tt> builds.</li>
329
+ <li>Fix buffer check in bytecode writer.</li>
330
+ <li>Make <tt>os.date()</tt> thread-safe.</li>
331
+ <li>Add missing declarations for MSVC intrinsics.</li>
332
+ <li>Fix dispatch table modifications for return hooks.</li>
333
+ <li>Workaround for MSVC conversion bug (<tt>double</tt> &rarr; <tt>uint32_t</tt> &rarr; <tt>int32_t</tt>).</li>
334
+ <li>Fix FOLD rule <tt>(i-j)-i => 0-j</tt>.</li>
335
+ <li>Never use DWARF unwinder on Windows.</li>
336
+ <li>Fix shrinking of direct mapped blocks in builtin allocator.</li>
337
+ <li>Limit recursion depth in <tt>string.match()</tt> et al.</li>
338
+ <li>Fix late despecialization of <tt>ITERN</tt> after loop has been entered.</li>
339
+ <li>Fix <tt>'f'</tt> and <tt>'L'</tt> options for <tt>debug.getinfo()</tt> and <tt>lua_getinfo()</tt>.</li>
340
+ <li>Fix <tt>package.searchpath()</tt>.</li>
341
+ <li>OSX: Change dylib names to be consistent with other platforms.</li>
342
+ <li>Android: Workaround for broken <tt>sprintf("%g",&nbsp;-0.0)</tt>.</li>
343
+ <li>x86: Remove support for ancient CPUs without <tt>CMOV</tt> (before Pentium Pro).</li>
344
+ <li>x86: Fix register allocation for calls returning register pair.</li>
345
+ <li>x86/x64: Fix fusion of unsigned byte comparisons with swapped operands.</li>
346
+ <li>ARM: Fix <tt>tonumber()</tt> argument check.</li>
347
+ <li>ARM: Fix modulo operator and <tt>math.floor()</tt>/<tt>math.ceil()</tt> for <tt>inf</tt>/<tt>nan</tt>.</li>
348
+ <li>ARM: Invoke SPLIT pass for leftover <tt>IR_TOBIT</tt>.</li>
349
+ <li>ARM: Fix BASE register coalescing.</li>
350
+ <li>PPC: Fix interpreter state setup in callbacks.</li>
351
+ <li>PPC: Fix <tt>string.sub()</tt> range check.</li>
352
+ <li>MIPS: Support generation of MIPS/MIPSEL bytecode object files.</li>
353
+ <li>MIPS: Fix calls to <tt>floor()</tt>/<tt>ceil()</tt><tt>/trunc()</tt>.</li>
354
+ <li>ARM/PPC: Detect more target architecture variants.</li>
355
+ <li>ARM/PPC/e500/MIPS: Fix tailcalls from fast functions, esp. <tt>tostring()</tt>.</li>
356
+ <li>ARM/PPC/MIPS: Fix rematerialization of FP constants.</li>
357
+ <li>FFI: Don't call <tt>FreeLibrary()</tt> on our own EXE/DLL.</li>
358
+ <li>FFI: Resolve metamethods for constructors, too.</li>
359
+ <li>FFI: Properly disable callbacks on iOS (would require executable memory).</li>
360
+ <li>FFI: Fix cdecl string parsing during recording.</li>
361
+ <li>FFI: Show address pointed to for <tt>tostring(ref)</tt>, too.</li>
362
+ <li>FFI: Fix alignment of C call argument/return structure.</li>
363
+ <li>FFI: Initialize all fields of standard types.</li>
364
+ <li>FFI: Fix callback handling when new C&nbsp;types are declared in callback.</li>
365
+ <li>FFI: Fix recording of constructors for pointers.</li>
366
+ <li>FFI: Always resolve metamethods for pointers to structs.</li>
367
+ <li>FFI: Correctly propagate alignment when interning nested types.</li>
368
+ </ul></li>
369
+ <li>Structural and performance enhancements:
370
+ <ul>
371
+ <li>Add allocation sinking and store sinking optimization.</li>
372
+ <li>Constify immutable upvalues.</li>
373
+ <li>Add builtin string to integer or FP number conversion. Improves cross-platform consistency and correctness.</li>
374
+ <li>Create string hash slots in template tables for non-const values, too. Avoids later table resizes.</li>
375
+ <li>Eliminate <tt>HREFK</tt> guard for template table references.</li>
376
+ <li>Add various new FOLD rules.</li>
377
+ <li>Don't use stack unwinding for <tt>lua_yield()</tt> (slow on x64).</li>
378
+ <li>ARM, PPC, MIPS: Improve <tt>XLOAD</tt> operand fusion and register hinting.</li>
379
+ <li>PPC, MIPS: Compile <tt>math.sqrt()</tt> to sqrt instruction, if available.</li>
380
+ <li>FFI: Fold <tt>KPTR</tt> + constant offset in SPLIT pass.</li>
381
+ <li>FFI: Optimize/inline <tt>ffi.copy()</tt> and <tt>ffi.fill()</tt>.</li>
382
+ <li>FFI: Compile and optimize array/struct copies.</li>
383
+ <li>FFI: Compile <tt>ffi.typeof(cdata|ctype)</tt>, <tt>ffi.sizeof()</tt>, <tt>ffi.alignof()</tt>, <tt>ffi.offsetof()</tt> and <tt>ffi.gc()</tt>.</li>
384
+ </ul></li>
385
+ </ul>
386
+
387
+ <h2 id="LuaJIT-2.0.0-beta10">LuaJIT 2.0.0-beta10 &mdash; 2012-05-09</h2>
388
+ <ul>
389
+ <li>New features:
390
+ <ul>
391
+ <li>The MIPS of LuaJIT is complete. It requires a CPU conforming to the
392
+ MIPS32&nbsp;R1 architecture with hardware FPU. O32 hard-fp ABI,
393
+ little-endian or big-endian.</li>
394
+ <li>Auto-detect target arch via cross-compiler. No need for
395
+ <tt>TARGET=arch</tt> anymore.</li>
396
+ <li>Make DynASM compatible with Lua 5.2.</li>
397
+ <li>From Lua 5.2: Try <tt>__tostring</tt> metamethod on non-string error
398
+ messages..</li>
399
+ </ul></li>
400
+ <li>Correctness and completeness:
401
+ <ul>
402
+ <li>Fix parsing of hex literals with exponents.</li>
403
+ <li>Fix bytecode dump for certain number constants.</li>
404
+ <li>Fix argument type in error message for relative arguments.</li>
405
+ <li>Fix argument error handling on Lua stacks without a frame.</li>
406
+ <li>Add missing mcode limit check in assembler backend.</li>
407
+ <li>Fix compilation on OpenBSD.</li>
408
+ <li>Avoid recursive GC steps after GC-triggered trace exit.</li>
409
+ <li>Replace <tt>&lt;unwind.h&gt;</tt> definitions with our own.</li>
410
+ <li>Fix OSX build issues. Bump minimum required OSX version to 10.4.</li>
411
+ <li>Fix discharge order of comparisons in Lua parser.</li>
412
+ <li>Ensure running <tt>__gc</tt> of userdata created in <tt>__gc</tt>
413
+ at state close.</li>
414
+ <li>Limit number of userdata <tt>__gc</tt> separations at state close.</li>
415
+ <li>Fix bytecode <tt>JMP</tt> slot range when optimizing
416
+ <tt>and</tt>/<tt>or</tt> with constant LHS.</li>
417
+ <li>Fix DSE of <tt>USTORE</tt>.</li>
418
+ <li>Make <tt>lua_concat()</tt> work from C&nbsp;hook with partial frame.</li>
419
+ <li>Add required PHIs for implicit conversions, e.g. via <tt>XREF</tt>
420
+ forwarding.</li>
421
+ <li>Add more comparison variants to Valgrind suppressions file.</li>
422
+ <li>Disable loading bytecode with an extra header (BOM or <tt>#!</tt>).</li>
423
+ <li>Fix PHI stack slot syncing.</li>
424
+ <li>ARM: Reorder type/value tests to silence Valgrind.</li>
425
+ <li>ARM: Fix register allocation for <tt>ldrd</tt>-optimized
426
+ <tt>HREFK</tt>.</li>
427
+ <li>ARM: Fix conditional branch fixup for <tt>OBAR</tt>.</li>
428
+ <li>ARM: Invoke SPLIT pass for <tt>double</tt> args in FFI call.</li>
429
+ <li>ARM: Handle all <tt>CALL*</tt> ops with <tt>double</tt> results in
430
+ SPLIT pass.</li>
431
+ <li>ARM: Fix rejoin of <tt>POW</tt> in SPLIT pass.</li>
432
+ <li>ARM: Fix compilation of <tt>math.sinh</tt>, <tt>math.cosh</tt>,
433
+ <tt>math.tanh</tt>.</li>
434
+ <li>ARM, PPC: Avoid pointless arg clearing in <tt>BC_IFUNCF</tt>.</li>
435
+ <li>PPC: Fix resume after yield from hook.</li>
436
+ <li>PPC: Fix argument checking for <tt>rawget()</tt>.</li>
437
+ <li>PPC: Fix fusion of floating-point <tt>XLOAD</tt>/<tt>XSTORE</tt>.</li>
438
+ <li>PPC: Fix <tt>HREFK</tt> code generation for huge tables.</li>
439
+ <li>PPC: Use builtin D-Cache/I-Cache sync code.</li>
440
+ </ul></li>
441
+ <li>FFI library:
442
+ <ul>
443
+ <li>Ignore empty statements in <tt>ffi.cdef()</tt>.</li>
444
+ <li>Ignore number parsing errors while skipping definitions.</li>
445
+ <li>Don't touch frame in callbacks with tailcalls to fast functions.</li>
446
+ <li>Fix library unloading on POSIX systems.</li>
447
+ <li>Finalize cdata before userdata when closing the state.</li>
448
+ <li>Change <tt>ffi.load()</tt> library name resolution for Cygwin.</li>
449
+ <li>Fix resolving of function name redirects on Windows/x86.</li>
450
+ <li>Fix symbol resolving error messages on Windows.</li>
451
+ <li>Fix blacklisting of C functions calling callbacks.</li>
452
+ <li>Fix result type of pointer difference.</li>
453
+ <li>Use correct PC in FFI metamethod error message.</li>
454
+ <li>Allow <tt>'typedef _Bool int BOOL;'</tt> for the Windows API.</li>
455
+ <li>Don't record test for bool result of call, if ignored.</li>
456
+ </ul></li>
457
+ </ul>
458
+
459
+ <h2 id="LuaJIT-2.0.0-beta9">LuaJIT 2.0.0-beta9 &mdash; 2011-12-14</h2>
460
+ <ul>
461
+ <li>New features:
462
+ <ul>
463
+ <li>PPC port of LuaJIT is complete. Default is the dual-number port
464
+ (usually faster). Single-number port selectable via <tt>src/Makefile</tt>
465
+ at build time.</li>
466
+ <li>Add FFI callback support.</li>
467
+ <li>Extend <tt>-b</tt> to generate <tt>.c</tt>, <tt>.h</tt> or <tt>.obj/.o</tt>
468
+ files with embedded bytecode.</li>
469
+ <li>Allow loading embedded bytecode with <tt>require()</tt>.</li>
470
+ <li>From Lua 5.2: Change to <tt>'\z'</tt> escape. Reject undefined escape
471
+ sequences.</li>
472
+ </ul></li>
473
+ <li>Correctness and completeness:
474
+ <ul>
475
+ <li>Fix OSX 10.7 build. Fix <tt>install_name</tt> and versioning on OSX.</li>
476
+ <li>Fix iOS build.</li>
477
+ <li>Install <tt>dis_arm.lua</tt>, too.</li>
478
+ <li>Mark installed shared library as executable.</li>
479
+ <li>Add debug option to <tt>msvcbuild.bat</tt> and improve error handling.</li>
480
+ <li>Fix data-flow analysis for iterators.</li>
481
+ <li>Fix forced unwinding triggered by external unwinder.</li>
482
+ <li>Record missing <tt>for</tt> loop slot loads (return to lower frame).</li>
483
+ <li>Always use ANSI variants of Windows system functions.</li>
484
+ <li>Fix GC barrier for multi-result table constructor (<tt>TSETM</tt>).</li>
485
+ <li>Fix/add various FOLD rules.</li>
486
+ <li>Add potential PHI for number conversions due to type instability.</li>
487
+ <li>Do not eliminate PHIs only referenced from other PHIs.</li>
488
+ <li>Correctly anchor implicit number to string conversions in Lua/C API.</li>
489
+ <li>Fix various stack limit checks.</li>
490
+ <li>x64: Use thread-safe exceptions for external unwinding (GCC platforms).</li>
491
+ <li>x64: Fix result type of cdata index conversions.</li>
492
+ <li>x64: Fix <tt>math.random()</tt> and <tt>bit.bswap()</tt> code generation.</li>
493
+ <li>x64: Fix <tt>lightuserdata</tt> comparisons.</li>
494
+ <li>x64: Always extend stack-passed arguments to pointer size.</li>
495
+ <li>ARM: Many fixes to code generation backend.</li>
496
+ <li>PPC/e500: Fix dispatch for binop metamethods.</li>
497
+ <li>PPC/e500: Save/restore condition registers when entering/leaving the VM.</li>
498
+ <li>PPC/e500: Fix write barrier in stores of strings to upvalues.</li>
499
+ </ul></li>
500
+ <li>FFI library:
501
+ <ul>
502
+ <li>Fix C comment parsing.</li>
503
+ <li>Fix snapshot optimization for cdata comparisons.</li>
504
+ <li>Fix recording of const/enum lookups in namespaces.</li>
505
+ <li>Fix call argument and return handling for <tt>I8/U8/I16/U16</tt> types.</li>
506
+ <li>Fix unfused loads of float fields.</li>
507
+ <li>Fix <tt>ffi.string()</tt> recording.</li>
508
+ <li>Save <tt>GetLastError()</tt> around <tt>ffi.load()</tt> and symbol
509
+ resolving, too.</li>
510
+ <li>Improve ld script detection in <tt>ffi.load()</tt>.</li>
511
+ <li>Record loads/stores to external variables in namespaces.</li>
512
+ <li>Compile calls to stdcall, fastcall and vararg functions.</li>
513
+ <li>Treat function ctypes like pointers in comparisons.</li>
514
+ <li>Resolve <tt>__call</tt> metamethod for pointers, too.</li>
515
+ <li>Record C function calls with bool return values.</li>
516
+ <li>Record <tt>ffi.errno()</tt>.</li>
517
+ <li>x86: Fix number to <tt>uint32_t</tt> conversion rounding.</li>
518
+ <li>x86: Fix 64 bit arithmetic in assembler backend.</li>
519
+ <li>x64: Fix struct-by-value calling conventions.</li>
520
+ <li>ARM: Ensure invocation of SPLIT pass for float conversions.</li>
521
+ </ul></li>
522
+ <li>Structural and performance enhancements:
523
+ <ul>
524
+ <li>Display trace types with <tt>-jv</tt> and <tt>-jdump</tt>.</li>
525
+ <li>Record isolated calls. But prefer recording loops over calls.</li>
526
+ <li>Specialize to prototype for non-monomorphic functions. Solves the
527
+ trace-explosion problem for closure-heavy programming styles.</li>
528
+ <li>Always generate a portable <tt>vmdef.lua</tt>. Easier for distros.</li>
529
+ </ul></li>
530
+ </ul>
531
+
532
+ <h2 id="LuaJIT-2.0.0-beta8">LuaJIT 2.0.0-beta8 &mdash; 2011-06-23</h2>
533
+ <ul>
534
+ <li>New features:
535
+ <ul>
536
+ <li>Soft-float ARM port of LuaJIT is complete.</li>
537
+ <li>Add support for bytecode loading/saving and <tt>-b</tt> command line
538
+ option.</li>
539
+ <li>From Lua 5.2: <tt>__len</tt> metamethod for tables
540
+ (disabled by default).</li>
541
+ </ul></li>
542
+ <li>Correctness and completeness:
543
+ <ul>
544
+ <li>ARM: Misc. fixes for interpreter.</li>
545
+ <li>x86/x64: Fix <tt>bit.*</tt> argument checking in interpreter.</li>
546
+ <li>Catch early out-of-memory in memory allocator initialization.</li>
547
+ <li>Fix data-flow analysis for paths leading to an upvalue close.</li>
548
+ <li>Fix check for missing arguments in <tt>string.format()</tt>.</li>
549
+ <li>Fix Solaris/x86 build (note: not a supported target).</li>
550
+ <li>Fix recording of loops with instable directions in side traces.</li>
551
+ <li>x86/x64: Fix fusion of comparisons with <tt>u8</tt>/<tt>u16</tt>
552
+ <tt>XLOAD</tt>.</li>
553
+ <li>x86/x64: Fix register allocation for variable shifts.</li>
554
+ </ul></li>
555
+ <li>FFI library:
556
+ <ul>
557
+ <li>Add <tt>ffi.errno()</tt>. Save <tt>errno</tt>/<tt>GetLastError()</tt>
558
+ around allocations etc.</li>
559
+ <li>Fix <tt>__gc</tt> for VLA/VLS cdata objects.</li>
560
+ <li>Fix recording of casts from 32 bit cdata pointers to integers.</li>
561
+ <li><tt>tonumber(cdata)</tt> returns <tt>nil</tt> for non-numbers.</li>
562
+ <li>Show address pointed to for <tt>tostring(pointer)</tt>.</li>
563
+ <li>Print <tt>NULL</tt> pointers as <tt>"cdata&lt;... *&gt;: NULL"</tt>.</li>
564
+ <li>Support <tt>__tostring</tt> metamethod for pointers to structs, too.</li>
565
+ </ul></li>
566
+ <li>Structural and performance enhancements:
567
+ <ul>
568
+ <li>More tuning for loop unrolling heuristics.</li>
569
+ <li>Flatten and compress in-memory debug info (saves ~70%).</li>
570
+ </ul></li>
571
+ </ul>
572
+
573
+ <h2 id="LuaJIT-2.0.0-beta7">LuaJIT 2.0.0-beta7 &mdash; 2011-05-05</h2>
574
+ <ul>
575
+ <li>New features:
576
+ <ul>
577
+ <li>ARM port of the LuaJIT interpreter is complete.</li>
578
+ <li>FFI library: Add <tt>ffi.gc()</tt>, <tt>ffi.metatype()</tt>,
579
+ <tt>ffi.istype()</tt>.</li>
580
+ <li>FFI library: Resolve ld script redirection in <tt>ffi.load()</tt>.</li>
581
+ <li>From Lua 5.2: <tt>package.searchpath()</tt>, <tt>fp:read("*L")</tt>,
582
+ <tt>load(string)</tt>.</li>
583
+ <li>From Lua 5.2, disabled by default: empty statement,
584
+ <tt>table.unpack()</tt>, modified <tt>coroutine.running()</tt>.</li>
585
+ </ul></li>
586
+ <li>Correctness and completeness:
587
+ <ul>
588
+ <li>FFI library: numerous fixes.</li>
589
+ <li>Fix type mismatches in store-to-load forwarding.</li>
590
+ <li>Fix error handling within metamethods.</li>
591
+ <li>Fix <tt>table.maxn()</tt>.</li>
592
+ <li>Improve accuracy of <tt>x^-k</tt> on x64.</li>
593
+ <li>Fix code generation for Intel Atom in x64 mode.</li>
594
+ <li>Fix narrowing of POW.</li>
595
+ <li>Fix recording of retried fast functions.</li>
596
+ <li>Fix code generation for <tt>bit.bnot()</tt> and multiplies.</li>
597
+ <li>Fix error location within cpcall frames.</li>
598
+ <li>Add workaround for old libgcc unwind bug.</li>
599
+ <li>Fix <tt>lua_yield()</tt> and <tt>getmetatable(lightuserdata)</tt> on x64.</li>
600
+ <li>Misc. fixes for PPC/e500 interpreter.</li>
601
+ <li>Fix stack slot updates for down-recursion.</li>
602
+ </ul></li>
603
+ <li>Structural and performance enhancements:
604
+ <ul>
605
+ <li>Add dual-number mode (int/double) for the VM. Enabled for ARM.</li>
606
+ <li>Improve narrowing of arithmetic operators and <tt>for</tt> loops.</li>
607
+ <li>Tune loop unrolling heuristics and increase trace recorder limits.</li>
608
+ <li>Eliminate dead slots in snapshots using bytecode data-flow analysis.</li>
609
+ <li>Avoid phantom stores to proxy tables.</li>
610
+ <li>Optimize lookups in empty proxy tables.</li>
611
+ <li>Improve bytecode optimization of <tt>and</tt>/<tt>or</tt> operators.</li>
612
+ </ul></li>
613
+ </ul>
614
+
615
+ <h2 id="LuaJIT-2.0.0-beta6">LuaJIT 2.0.0-beta6 &mdash; 2011-02-11</h2>
616
+ <ul>
617
+ <li>New features:
618
+ <ul>
619
+ <li>PowerPC/e500v2 port of the LuaJIT interpreter is complete.</li>
620
+ <li>Various minor features from Lua 5.2: Hex escapes in literals,
621
+ <tt>'\*'</tt> escape, reversible <tt>string.format("%q",s)</tt>,
622
+ <tt>"%g"</tt> pattern, <tt>table.sort</tt> checks callbacks,
623
+ <tt>os.exit(status|true|false[,close])</tt>.</li>
624
+ <li>Lua 5.2 <tt>__pairs</tt> and <tt>__ipairs</tt> metamethods
625
+ (disabled by default).</li>
626
+ <li>Initial release of the FFI library.</li>
627
+ </ul></li>
628
+ <li>Correctness and completeness:
629
+ <ul>
630
+ <li>Fix <tt>string.format()</tt> for non-finite numbers.</li>
631
+ <li>Fix memory leak when compiled to use the built-in allocator.</li>
632
+ <li>x86/x64: Fix unnecessary resize in <tt>TSETM</tt> bytecode.</li>
633
+ <li>Fix various GC issues with traces and <tt>jit.flush()</tt>.</li>
634
+ <li>x64: Fix fusion of indexes for array references.</li>
635
+ <li>x86/x64: Fix stack overflow handling for coroutine results.</li>
636
+ <li>Enable low-2GB memory allocation on FreeBSD/x64.</li>
637
+ <li>Fix <tt>collectgarbage("count")</tt> result if more than 2GB is in use.</li>
638
+ <li>Fix parsing of hex floats.</li>
639
+ <li>x86/x64: Fix loop branch inversion with trailing
640
+ <tt>HREF+NE/EQ</tt>.</li>
641
+ <li>Add <tt>jit.os</tt> string.</li>
642
+ <li><tt>coroutine.create()</tt> permits running C functions, too.</li>
643
+ <li>Fix OSX build to work with newer ld64 versions.</li>
644
+ <li>Fix bytecode optimization of <tt>and</tt>/<tt>or</tt> operators.</li>
645
+ </ul></li>
646
+ <li>Structural and performance enhancements:
647
+ <ul>
648
+ <li>Emit specialized bytecode for <tt>pairs()</tt>/<tt>next()</tt>.</li>
649
+ <li>Improve bytecode coalescing of <tt>nil</tt> constants.</li>
650
+ <li>Compile calls to vararg functions.</li>
651
+ <li>Compile <tt>select()</tt>.</li>
652
+ <li>Improve alias analysis, esp. for loads from allocations.</li>
653
+ <li>Tuning of various compiler heuristics.</li>
654
+ <li>Refactor and extend IR conversion instructions.</li>
655
+ <li>x86/x64: Various backend enhancements related to the FFI.</li>
656
+ <li>Add SPLIT pass to split 64 bit IR instructions for 32 bit CPUs.</li>
657
+ </ul></li>
658
+ </ul>
659
+
660
+ <h2 id="LuaJIT-2.0.0-beta5">LuaJIT 2.0.0-beta5 &mdash; 2010-08-24</h2>
661
+ <ul>
662
+ <li>Correctness and completeness:
663
+ <ul>
664
+ <li>Fix trace exit dispatch to function headers.</li>
665
+ <li>Fix Windows and OSX builds with LUAJIT_DISABLE_JIT.</li>
666
+ <li>Reorganize and fix placement of generated machine code on x64.</li>
667
+ <li>Fix TNEW in x64 interpreter.</li>
668
+ <li>Do not eliminate PHIs for values only referenced from side exits.</li>
669
+ <li>OS-independent canonicalization of strings for non-finite numbers.</li>
670
+ <li>Fix <tt>string.char()</tt> range check on x64.</li>
671
+ <li>Fix <tt>tostring()</tt> resolving within <tt>print()</tt>.</li>
672
+ <li>Fix error handling for <tt>next()</tt>.</li>
673
+ <li>Fix passing of constant arguments to external calls on x64.</li>
674
+ <li>Fix interpreter argument check for two-argument SSE math functions.</li>
675
+ <li>Fix C frame chain corruption caused by <tt>lua_cpcall()</tt>.</li>
676
+ <li>Fix return from <tt>pcall()</tt> within active hook.</li>
677
+ </ul></li>
678
+ <li>Structural and performance enhancements:
679
+ <ul>
680
+ <li>Replace on-trace GC frame syncing with interpreter exit.</li>
681
+ <li>Improve hash lookup specialization by not removing dead keys during GC.</li>
682
+ <li>Turn traces into true GC objects.</li>
683
+ <li>Avoid starting a GC cycle immediately after library init.</li>
684
+ <li>Add weak guards to improve dead-code elimination.</li>
685
+ <li>Speed up string interning.</li>
686
+ </ul></li>
687
+ </ul>
688
+
689
+ <h2 id="LuaJIT-2.0.0-beta4">LuaJIT 2.0.0-beta4 &mdash; 2010-03-28</h2>
690
+ <ul>
691
+ <li>Correctness and completeness:
692
+ <ul>
693
+ <li>Fix precondition for on-trace creation of table keys.</li>
694
+ <li>Fix <tt>{f()}</tt> on x64 when table is resized.</li>
695
+ <li>Fix folding of ordered comparisons with same references.</li>
696
+ <li>Fix snapshot restores for multi-result bytecodes.</li>
697
+ <li>Fix potential hang when recording bytecode with nested closures.</li>
698
+ <li>Fix recording of <tt>getmetatable()</tt>, <tt>tonumber()</tt> and bad argument types.</li>
699
+ <li>Fix SLOAD fusion across returns to lower frames.</li>
700
+ </ul></li>
701
+ <li>Structural and performance enhancements:
702
+ <ul>
703
+ <li>Add array bounds check elimination. <tt>-Oabc</tt> is enabled by default.</li>
704
+ <li>More tuning for x64, e.g. smaller table objects.</li>
705
+ </ul></li>
706
+ </ul>
707
+
708
+ <h2 id="LuaJIT-2.0.0-beta3">LuaJIT 2.0.0-beta3 &mdash; 2010-03-07</h2>
709
+ <ul>
710
+ <li>LuaJIT x64 port:
711
+ <ul>
712
+ <li>Port integrated memory allocator to Linux/x64, Windows/x64 and OSX/x64.</li>
713
+ <li>Port interpreter and JIT compiler to x64.</li>
714
+ <li>Port DynASM to x64.</li>
715
+ <li>Many 32/64 bit cleanups in the VM.</li>
716
+ <li>Allow building the interpreter with either x87 or SSE2 arithmetics.</li>
717
+ <li>Add external unwinding and C++ exception interop (default on x64).</li>
718
+ </ul></li>
719
+ <li>Correctness and completeness:
720
+ <ul>
721
+ <li>Fix constructor bytecode generation for certain conditional values.</li>
722
+ <li>Fix some cases of ordered string comparisons.</li>
723
+ <li>Fix <tt>lua_tocfunction()</tt>.</li>
724
+ <li>Fix cutoff register in JMP bytecode for some conditional expressions.</li>
725
+ <li>Fix PHI marking algorithm for references from variant slots.</li>
726
+ <li>Fix <tt>package.cpath</tt> for non-default PREFIX.</li>
727
+ <li>Fix DWARF2 frame unwind information for interpreter on OSX.</li>
728
+ <li>Drive the GC forward on string allocations in the parser.</li>
729
+ <li>Implement call/return hooks (zero-cost if disabled).</li>
730
+ <li>Implement yield from C hooks.</li>
731
+ <li>Disable JIT compiler on older non-SSE2 CPUs instead of aborting.</li>
732
+ </ul></li>
733
+ <li>Structural and performance enhancements:
734
+ <ul>
735
+ <li>Compile recursive code (tail-, up- and down-recursion).</li>
736
+ <li>Improve heuristics for bytecode penalties and blacklisting.</li>
737
+ <li>Split CALL/FUNC recording and clean up fast function call semantics.</li>
738
+ <li>Major redesign of internal function call handling.</li>
739
+ <li>Improve FOR loop const specialization and integerness checks.</li>
740
+ <li>Switch to pre-initialized stacks. Avoid frame-clearing.</li>
741
+ <li>Colocation of prototypes and related data: bytecode, constants, debug info.</li>
742
+ <li>Cleanup parser and streamline bytecode generation.</li>
743
+ <li>Add support for weak IR references to register allocator.</li>
744
+ <li>Switch to compressed, extensible snapshots.</li>
745
+ <li>Compile returns to frames below the start frame.</li>
746
+ <li>Improve alias analysis of upvalues using a disambiguation hash value.</li>
747
+ <li>Compile floor/ceil/trunc to SSE2 helper calls or SSE4.1 instructions.</li>
748
+ <li>Add generic C call handling to IR and backend.</li>
749
+ <li>Improve KNUM fuse vs. load heuristics.</li>
750
+ <li>Compile various <tt>io.*()</tt> functions.</li>
751
+ <li>Compile <tt>math.sinh()</tt>, <tt>math.cosh()</tt>, <tt>math.tanh()</tt>
752
+ and <tt>math.random()</tt>.</li>
753
+ </ul></li>
754
+ </ul>
755
+
756
+ <h2 id="LuaJIT-2.0.0-beta2">LuaJIT 2.0.0-beta2 &mdash; 2009-11-09</h2>
757
+ <ul>
758
+ <li>Reorganize build system. Build static+shared library on POSIX.</li>
759
+ <li>Allow C++ exception conversion on all platforms
760
+ using a wrapper function.</li>
761
+ <li>Automatically catch C++ exceptions and rethrow Lua error
762
+ (DWARF2 only).</li>
763
+ <li>Check for the correct x87 FPU precision at strategic points.</li>
764
+ <li>Always use wrappers for libm functions.</li>
765
+ <li>Resurrect metamethod name strings before copying them.</li>
766
+ <li>Mark current trace, even if compiler is idle.</li>
767
+ <li>Ensure FILE metatable is created only once.</li>
768
+ <li>Fix type comparisons when different integer types are involved.</li>
769
+ <li>Fix <tt>getmetatable()</tt> recording.</li>
770
+ <li>Fix TDUP with dead keys in template table.</li>
771
+ <li><tt>jit.flush(tr)</tt> returns status.
772
+ Prevent manual flush of a trace that's still linked.</li>
773
+ <li>Improve register allocation heuristics for invariant references.</li>
774
+ <li>Compile the push/pop variants of <tt>table.insert()</tt> and
775
+ <tt>table.remove()</tt>.</li>
776
+ <li>Compatibility with MSVC <tt>link&nbsp/debug</tt>.</li>
777
+ <li>Fix <tt>lua_iscfunction()</tt>.</li>
778
+ <li>Fix <tt>math.random()</tt> when compiled with <tt>-fpic</tt> (OSX).</li>
779
+ <li>Fix <tt>table.maxn()</tt>.</li>
780
+ <li>Bump <tt>MACOSX_DEPLOYMENT_TARGET</tt> to <tt>10.4</tt></li>
781
+ <li><tt>luaL_check*()</tt> and <tt>luaL_opt*()</tt> now support
782
+ negative arguments, too.<br>
783
+ This matches the behavior of Lua 5.1, but not the specification.</li>
784
+ </ul>
785
+
786
+ <h2 id="LuaJIT-2.0.0-beta1">LuaJIT 2.0.0-beta1 &mdash; 2009-10-31</h2>
787
+ <ul>
788
+ <li>This is the first public release of LuaJIT 2.0.</li>
789
+ <li>The whole VM has been rewritten from the ground up, so there's
790
+ no point in listing differences over earlier versions.</li>
791
+ </ul>
792
+ </div>
793
+ <br class="flush">
794
+ </div>
795
+ <div id="foot">
796
+ <hr class="hide">
797
+ Copyright &copy; 2005-2015 Mike Pall
798
+ <span class="noprint">
799
+ &middot;
800
+ <a href="contact.html">Contact</a>
801
+ </span>
802
+ </div>
803
+ </body>
804
+ </html>