diff options
author | Mike Pall <mike> | 2017-01-17 11:37:28 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2017-01-17 11:37:28 +0100 |
commit | c1981676907cedde9ffe2bbdfb28d2f786ff69d9 (patch) | |
tree | 08fec89b79040b758cc4473163a5e40dbe355799 /src/host | |
parent | ed4ce98ac1471a1d8a4f50486adb29771dcab9f2 (diff) | |
download | luajit-c1981676907cedde9ffe2bbdfb28d2f786ff69d9.tar.gz luajit-c1981676907cedde9ffe2bbdfb28d2f786ff69d9.tar.bz2 luajit-c1981676907cedde9ffe2bbdfb28d2f786ff69d9.zip |
Add some more extensions from Lua 5.2/5.3.
Contributed by François Perrad.
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/buildvm_libbc.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/host/buildvm_libbc.h b/src/host/buildvm_libbc.h index 45f8f8cb..b2600bd5 100644 --- a/src/host/buildvm_libbc.h +++ b/src/host/buildvm_libbc.h | |||
@@ -15,7 +15,12 @@ static const uint8_t libbc_code[] = { | |||
15 | 8,2,0,0,88,3,23,128,59,3,2,0,43,4,0,0,64,4,2,0,76,3,2,0,88,3,18,128,16,1,14, | 15 | 8,2,0,0,88,3,23,128,59,3,2,0,43,4,0,0,64,4,2,0,76,3,2,0,88,3,18,128,16,1,14, |
16 | 0,41,3,1,0,3,3,1,0,88,3,14,128,3,1,2,0,88,3,12,128,59,3,1,0,22,4,1,1,18,5,2, | 16 | 0,41,3,1,0,3,3,1,0,88,3,14,128,3,1,2,0,88,3,12,128,59,3,1,0,22,4,1,1,18,5,2, |
17 | 0,41,6,1,0,77,4,4,128,23,8,1,7,59,9,7,0,64,9,8,0,79,4,252,127,43,4,0,0,64,4, | 17 | 0,41,6,1,0,77,4,4,128,23,8,1,7,59,9,7,0,64,9,8,0,79,4,252,127,43,4,0,0,64,4, |
18 | 2,0,76,3,2,0,75,0,1,0,0,2,0 | 18 | 2,0,76,3,2,0,75,0,1,0,0,2,0,5,12,0,0,0,35,16,0,12,0,16,1,14,0,16,2,14,0,16, |
19 | 3,14,0,11,4,0,0,88,5,1,128,18,4,0,0,16,4,12,0,3,1,2,0,88,5,24,128,33,5,1,3, | ||
20 | 0,2,3,0,88,6,4,128,2,3,1,0,88,6,2,128,4,4,0,0,88,6,9,128,18,6,1,0,18,7,2,0, | ||
21 | 41,8,1,0,77,6,4,128,32,10,5,9,59,11,9,0,64,11,10,4,79,6,252,127,88,6,8,128, | ||
22 | 18,6,2,0,18,7,1,0,41,8,255,255,77,6,4,128,32,10,5,9,59,11,9,0,64,11,10,4,79, | ||
23 | 6,252,127,76,4,2,0,0 | ||
19 | #else | 24 | #else |
20 | 0,1,2,0,0,1,2,24,1,0,0,76,1,2,0,241,135,158,166,3,220,203,178,130,4,0,1,2,0, | 25 | 0,1,2,0,0,1,2,24,1,0,0,76,1,2,0,241,135,158,166,3,220,203,178,130,4,0,1,2,0, |
21 | 0,1,2,24,1,0,0,76,1,2,0,243,244,148,165,20,198,190,199,252,3,0,1,2,0,0,0,3, | 26 | 0,1,2,24,1,0,0,76,1,2,0,243,244,148,165,20,198,190,199,252,3,0,1,2,0,0,0,3, |
@@ -28,7 +33,12 @@ static const uint8_t libbc_code[] = { | |||
28 | 8,2,0,0,88,3,23,128,59,3,2,0,43,4,0,0,64,4,2,0,76,3,2,0,88,3,18,128,16,1,14, | 33 | 8,2,0,0,88,3,23,128,59,3,2,0,43,4,0,0,64,4,2,0,76,3,2,0,88,3,18,128,16,1,14, |
29 | 0,41,3,1,0,3,3,1,0,88,3,14,128,3,1,2,0,88,3,12,128,59,3,1,0,22,4,1,1,18,5,2, | 34 | 0,41,3,1,0,3,3,1,0,88,3,14,128,3,1,2,0,88,3,12,128,59,3,1,0,22,4,1,1,18,5,2, |
30 | 0,41,6,1,0,77,4,4,128,23,8,1,7,59,9,7,0,64,9,8,0,79,4,252,127,43,4,0,0,64,4, | 35 | 0,41,6,1,0,77,4,4,128,23,8,1,7,59,9,7,0,64,9,8,0,79,4,252,127,43,4,0,0,64,4, |
31 | 2,0,76,3,2,0,75,0,1,0,0,2,0 | 36 | 2,0,76,3,2,0,75,0,1,0,0,2,0,5,12,0,0,0,35,16,0,12,0,16,1,14,0,16,2,14,0,16, |
37 | 3,14,0,11,4,0,0,88,5,1,128,18,4,0,0,16,4,12,0,3,1,2,0,88,5,24,128,33,5,1,3, | ||
38 | 0,2,3,0,88,6,4,128,2,3,1,0,88,6,2,128,4,4,0,0,88,6,9,128,18,6,1,0,18,7,2,0, | ||
39 | 41,8,1,0,77,6,4,128,32,10,5,9,59,11,9,0,64,11,10,4,79,6,252,127,88,6,8,128, | ||
40 | 18,6,2,0,18,7,1,0,41,8,255,255,77,6,4,128,32,10,5,9,59,11,9,0,64,11,10,4,79, | ||
41 | 6,252,127,76,4,2,0,0 | ||
32 | #endif | 42 | #endif |
33 | }; | 43 | }; |
34 | 44 | ||
@@ -40,6 +50,7 @@ static const struct { const char *name; int ofs; } libbc_map[] = { | |||
40 | {"table_foreach",136}, | 50 | {"table_foreach",136}, |
41 | {"table_getn",207}, | 51 | {"table_getn",207}, |
42 | {"table_remove",226}, | 52 | {"table_remove",226}, |
43 | {NULL,355} | 53 | {"table_move",355}, |
54 | {NULL,502} | ||
44 | }; | 55 | }; |
45 | 56 | ||