changes.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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-2009, 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="install.html">Installation</a>
  27. </li><li>
  28. <a href="running.html">Running</a>
  29. </li><li>
  30. <a href="api.html">API Extensions</a>
  31. </li></ul>
  32. </li><li>
  33. <a href="status.html">Status</a>
  34. <ul><li>
  35. <a class="current" href="changes.html">Changes</a>
  36. </li></ul>
  37. </li><li>
  38. <a href="faq.html">FAQ</a>
  39. </li><li>
  40. <a href="http://luajit.org/download.html">Download <span class="ext">&raquo;</span></a>
  41. </li></ul>
  42. </div>
  43. <div id="main">
  44. <p>
  45. This is a list of changes between the released versions of LuaJIT.<br>
  46. The current <span style="color: #c00000;">development version</span> is <strong>LuaJIT&nbsp;2.0.0-beta1</strong>.<br>
  47. The current <span style="color: #0000c0;">stable version</span> is <strong>LuaJIT&nbsp;1.1.5</strong>.
  48. </p>
  49. <p>
  50. Please check the
  51. <a href="http://luajit.org/luajit_changes.html"><span class="ext">&raquo;</span>&nbsp;Online Change History</a>
  52. to see whether newer versions are available.
  53. </p>
  54. <div class="major" style="background: #ffd0d0;">
  55. <h2 id="LuaJIT-2.0.0-beta1">LuaJIT 2.0.0-beta1 &mdash; 2009-10-31</h2>
  56. <ul>
  57. <li>This is the first public release of LuaJIT 2.0.</li>
  58. <li>The whole VM has been rewritten from the ground up, so there's
  59. no point in listing differences over earlier versions.</li>
  60. </ul>
  61. </div>
  62. <div class="major" style="background: #d0d0ff;">
  63. <h2 id="LuaJIT-1.1.5">LuaJIT 1.1.5 &mdash; 2008-10-25</h2>
  64. <ul>
  65. <li>Merged with Lua 5.1.4. Fixes all
  66. <a href="http://www.lua.org/bugs.html#5.1.3"><span class="ext">&raquo;</span>&nbsp;known bugs in Lua 5.1.3</a>.</li>
  67. </ul>
  68. <h2 id="LuaJIT-1.1.4">LuaJIT 1.1.4 &mdash; 2008-02-05</h2>
  69. <ul>
  70. <li>Merged with Lua 5.1.3. Fixes all
  71. <a href="http://www.lua.org/bugs.html#5.1.2"><span class="ext">&raquo;</span>&nbsp;known bugs in Lua 5.1.2</a>.</li>
  72. <li>Fixed possible (but unlikely) stack corruption while compiling
  73. <tt>k^x</tt> expressions.</li>
  74. <li>Fixed DynASM template for cmpss instruction.</li>
  75. </ul>
  76. <h2 id="LuaJIT-1.1.3">LuaJIT 1.1.3 &mdash; 2007-05-24</h2>
  77. <ul>
  78. <li>Merged with Lua 5.1.2. Fixes all
  79. <a href="http://www.lua.org/bugs.html#5.1.1"><span class="ext">&raquo;</span>&nbsp;known bugs in Lua 5.1.1</a>.</li>
  80. <li>Merged pending Lua 5.1.x fixes: "return -nil" bug, spurious count hook call.</li>
  81. <li>Remove a (sometimes) wrong assertion in <tt>luaJIT_findpc()</tt>.</li>
  82. <li>DynASM now allows labels for displacements and <tt>.aword</tt>.</li>
  83. <li>Fix some compiler warnings for DynASM glue (internal API change).</li>
  84. <li>Correct naming for SSSE3 (temporarily known as SSE4) in DynASM and x86 disassembler.</li>
  85. <li>The loadable debug modules now handle redirection to stdout
  86. (e.g. <tt>-j&nbsp;trace=-</tt>).</li>
  87. </ul>
  88. <h2 id="LuaJIT-1.1.2">LuaJIT 1.1.2 &mdash; 2006-06-24</h2>
  89. <ul>
  90. <li>Fix MSVC inline assembly: use only local variables with
  91. <tt>lua_number2int()</tt>.</li>
  92. <li>Fix "attempt to call a thread value" bug on Mac OS X:
  93. make values of consts used as lightuserdata keys unique
  94. to avoid joining by the compiler/linker.</li>
  95. </ul>
  96. <h2 id="LuaJIT-1.1.1">LuaJIT 1.1.1 &mdash; 2006-06-20</h2>
  97. <ul>
  98. <li>Merged with Lua 5.1.1. Fixes all
  99. <a href="http://www.lua.org/bugs.html#5.1"><span class="ext">&raquo;</span>&nbsp;known bugs in Lua 5.1</a>.</li>
  100. <li>Enforce (dynamic) linker error for EXE/DLL version mismatches.</li>
  101. <li>Minor changes to DynASM: faster preprocessing, smaller encoding
  102. for some immediates.</li>
  103. </ul>
  104. <p>
  105. This release is in sync with Coco 1.1.1 (see the
  106. <a href="http://coco.luajit.org/changes.html"><span class="ext">&raquo;</span>&nbsp;Coco Change History</a>).
  107. </p>
  108. <h2 id="LuaJIT-1.1.0">LuaJIT 1.1.0 &mdash; 2006-03-13</h2>
  109. <ul>
  110. <li>Merged with Lua 5.1 (final).</li>
  111. <li>New JIT call frame setup:
  112. <ul>
  113. <li>The C stack is kept 16 byte aligned (faster).
  114. Mandatory for Mac OS X on Intel, too.</li>
  115. <li>Faster calling conventions for internal C helper functions.</li>
  116. <li>Better instruction scheduling for function prologue, OP_CALL and
  117. OP_RETURN.</li>
  118. </ul></li>
  119. <li>Miscellaneous optimizations:
  120. <ul>
  121. <li>Faster loads of FP constants. Remove narrow-to-wide store-to-load
  122. forwarding stalls.</li>
  123. <li>Use (scalar) SSE2 ops (if the CPU supports it) to speed up slot moves
  124. and FP to integer conversions.</li>
  125. <li>Optimized the two-argument form of <tt>OP_CONCAT</tt> (<tt>a..b</tt>).</li>
  126. <li>Inlined <tt>OP_MOD</tt> (<tt>a%b</tt>).
  127. With better accuracy than the C variant, too.</li>
  128. <li>Inlined <tt>OP_POW</tt> (<tt>a^b</tt>). Unroll <tt>x^k</tt> or
  129. use <tt>k^x = 2^(log2(k)*x)</tt> or call <tt>pow()</tt>.</li>
  130. </ul></li>
  131. <li>Changes in the optimizer:
  132. <ul>
  133. <li>Improved hinting for table keys derived from table values
  134. (<tt>t1[t2[x]]</tt>).</li>
  135. <li>Lookup hinting now works with arbitrary object types and
  136. supports index chains, too.</li>
  137. <li>Generate type hints for arithmetic and comparison operators,
  138. OP_LEN, OP_CONCAT and OP_FORPREP.</li>
  139. <li>Remove several hint definitions in favour of a generic COMBINE hint.</li>
  140. <li>Complete rewrite of <tt>jit.opt_inline</tt> module
  141. (ex <tt>jit.opt_lib</tt>).</li>
  142. </ul></li>
  143. <li>Use adaptive deoptimization:
  144. <ul>
  145. <li>If runtime verification of a contract fails, the affected
  146. instruction is recompiled and patched on-the-fly.
  147. Regular programs will trigger deoptimization only occasionally.</li>
  148. <li>This avoids generating code for uncommon fallback cases
  149. most of the time. Generated code is up to 30% smaller compared to
  150. LuaJIT&nbsp;1.0.3.</li>
  151. <li>Deoptimization is used for many opcodes and contracts:
  152. <ul>
  153. <li>OP_CALL, OP_TAILCALL: type mismatch for callable.</li>
  154. <li>Inlined calls: closure mismatch, parameter number and type mismatches.</li>
  155. <li>OP_GETTABLE, OP_SETTABLE: table or key type and range mismatches.</li>
  156. <li>All arithmetic and comparison operators, OP_LEN, OP_CONCAT,
  157. OP_FORPREP: operand type and range mismatches.</li>
  158. </ul></li>
  159. <li>Complete redesign of the debug and traceback info
  160. (bytecode &harr; mcode) to support deoptimization.
  161. Much more flexible and needs only 50% of the space.</li>
  162. <li>The modules <tt>jit.trace</tt>, <tt>jit.dumphints</tt> and
  163. <tt>jit.dump</tt> handle deoptimization.</li>
  164. </ul></li>
  165. <li>Inlined many popular library functions
  166. (for commonly used arguments only):
  167. <ul>
  168. <li>Most <tt>math.*</tt> functions (the 18 most used ones)
  169. [2x-10x faster].</li>
  170. <li><tt>string.len</tt>, <tt>string.sub</tt> and <tt>string.char</tt>
  171. [2x-10x faster].</li>
  172. <li><tt>table.insert</tt>, <tt>table.remove</tt> and <tt>table.getn</tt>
  173. [3x-5x faster].</li>
  174. <li><tt>coroutine.yield</tt> and <tt>coroutine.resume</tt>
  175. [3x-5x faster].</li>
  176. <li><tt>pairs</tt>, <tt>ipairs</tt> and the corresponding iterators
  177. [8x-15x faster].</li>
  178. </ul></li>
  179. <li>Changes in the core and loadable modules and the stand-alone executable:
  180. <ul>
  181. <li>Added <tt>jit.version</tt>, <tt>jit.version_num</tt>
  182. and <tt>jit.arch</tt>.</li>
  183. <li>Reorganized some internal API functions (<tt>jit.util.*mcode*</tt>).</li>
  184. <li>The <tt>-j dump</tt> output now shows JSUB names, too.</li>
  185. <li>New x86 disassembler module written in pure Lua. No dependency
  186. on ndisasm anymore. Flexible API, very compact (500 lines)
  187. and complete (x87, MMX, SSE, SSE2, SSE3, SSSE3, privileged instructions).</li>
  188. <li><tt>luajit -v</tt> prints the LuaJIT version and copyright
  189. on a separate line.</li>
  190. </ul></li>
  191. <li>Added SSE, SSE2, SSE3 and SSSE3 support to DynASM.</li>
  192. <li>Miscellaneous doc changes. Added a section about
  193. <a href="luajit_install.html#embedding">embedding LuaJIT</a>.</li>
  194. </ul>
  195. <p>
  196. This release is in sync with Coco 1.1.0 (see the
  197. <a href="http://coco.luajit.org/changes.html"><span class="ext">&raquo;</span>&nbsp;Coco Change History</a>).
  198. </p>
  199. </div>
  200. <div class="major" style="background: #ffffd0;">
  201. <h2 id="LuaJIT-1.0.3">LuaJIT 1.0.3 &mdash; 2005-09-08</h2>
  202. <ul>
  203. <li>Even more docs.</li>
  204. <li>Unified closure checks in <tt>jit.*</tt>.</li>
  205. <li>Fixed some range checks in <tt>jit.util.*</tt>.</li>
  206. <li>Fixed __newindex call originating from <tt>jit_settable_str()</tt>.</li>
  207. <li>Merged with Lua 5.1 alpha (including early bugfixes).</li>
  208. </ul>
  209. <p>
  210. This is the first public release of LuaJIT.
  211. </p>
  212. <h2 id="LuaJIT-1.0.2">LuaJIT 1.0.2 &mdash; 2005-09-02</h2>
  213. <ul>
  214. <li>Add support for flushing the Valgrind translation cache <br>
  215. (<tt>MYCFLAGS= -DUSE_VALGRIND</tt>).</li>
  216. <li>Add support for freeing executable mcode memory to the <tt>mmap()</tt>-based
  217. variant for POSIX systems.</li>
  218. <li>Reorganized the C&nbsp;function signature handling in
  219. <tt>jit.opt_lib</tt>.</li>
  220. <li>Changed to index-based hints for inlining C&nbsp;functions.
  221. Still no support in the backend for inlining.</li>
  222. <li>Hardcode <tt>HEAP_CREATE_ENABLE_EXECUTE</tt> value if undefined.</li>
  223. <li>Misc. changes to the <tt>jit.*</tt> modules.</li>
  224. <li>Misc. changes to the Makefiles.</li>
  225. <li>Lots of new docs.</li>
  226. <li>Complete doc reorg.</li>
  227. </ul>
  228. <p>
  229. Not released because Lua 5.1 alpha came out today.
  230. </p>
  231. <h2 id="LuaJIT-1.0.1">LuaJIT 1.0.1 &mdash; 2005-08-31</h2>
  232. <ul>
  233. <li>Missing GC step in <tt>OP_CONCAT</tt>.</li>
  234. <li>Fix result handling for C &ndash;> JIT calls.</li>
  235. <li>Detect CPU feature bits.</li>
  236. <li>Encode conditional moves (<tt>fucomip</tt>) only when supported.</li>
  237. <li>Add fallback instructions for FP compares.</li>
  238. <li>Add support for <tt>LUA_COMPAT_VARARG</tt>. Still disabled by default.</li>
  239. <li>MSVC needs a specific place for the <tt>CALLBACK</tt> attribute
  240. (David Burgess).</li>
  241. <li>Misc. doc updates.</li>
  242. </ul>
  243. <p>
  244. Interim non-public release.
  245. Special thanks to Adam D. Moss for reporting most of the bugs.
  246. </p>
  247. <h2 id="LuaJIT-1.0.0">LuaJIT 1.0.0 &mdash; 2005-08-29</h2>
  248. <p>
  249. This is the initial non-public release of LuaJIT.
  250. </p>
  251. </div>
  252. <br class="flush">
  253. </div>
  254. <div id="foot">
  255. <hr class="hide">
  256. Copyright &copy; 2005-2009 Mike Pall
  257. <span class="noprint">
  258. &middot;
  259. <a href="contact.html">Contact</a>
  260. </span>
  261. </div>
  262. </body>
  263. </html>