diff options
author | Mike Pall <mike> | 2013-04-26 18:40:39 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-04-26 18:40:39 +0200 |
commit | f9421f2b9f0959bc80eff064a0f13970c4e35cc1 (patch) | |
tree | 68e44457ede555d214cab3532386b1fa85736184 /src/host | |
parent | 47fa9a8d8ff7123e160abfc18c88589bbb7f4b58 (diff) | |
download | luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.tar.gz luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.tar.bz2 luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.zip |
Replace string.len with bytecode builtin.
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/buildvm_libbc.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/host/buildvm_libbc.h b/src/host/buildvm_libbc.h index ec2a55f8..e96c8a53 100644 --- a/src/host/buildvm_libbc.h +++ b/src/host/buildvm_libbc.h | |||
@@ -4,25 +4,27 @@ static const int libbc_endian = 0; | |||
4 | 4 | ||
5 | static const uint8_t libbc_code[] = { | 5 | static const uint8_t libbc_code[] = { |
6 | 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, | 6 | 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, |
7 | 0,1,2,24,1,0,0,76,1,2,0,243,244,148,165,20,198,190,199,252,3,0,2,9,0,0,0,15, | 7 | 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, |
8 | 16,0,12,0,16,1,9,0,41,2,1,0,21,3,0,0,41,4,1,0,77,2,8,128,18,6,1,0,18,7,5,0, | 8 | 16,0,5,0,21,1,0,0,76,1,2,0,0,2,9,0,0,0,15,16,0,12,0,16,1,9,0,41,2,1,0,21,3, |
9 | 59,8,5,0,66,6,3,2,10,6,0,0,88,7,1,128,76,6,2,0,79,2,248,127,75,0,1,0,0,2,10, | 9 | 0,0,41,4,1,0,77,2,8,128,18,6,1,0,18,7,5,0,59,8,5,0,66,6,3,2,10,6,0,0,88,7,1, |
10 | 0,0,0,16,16,0,12,0,16,1,9,0,43,2,0,0,18,3,0,0,41,4,0,0,88,5,7,128,18,7,1,0, | 10 | 128,76,6,2,0,79,2,248,127,75,0,1,0,0,2,10,0,0,0,16,16,0,12,0,16,1,9,0,43,2, |
11 | 18,8,5,0,18,9,6,0,66,7,3,2,10,7,0,0,88,8,1,128,76,7,2,0,70,5,3,3,82,5,247,127, | 11 | 0,0,18,3,0,0,41,4,0,0,88,5,7,128,18,7,1,0,18,8,5,0,18,9,6,0,66,7,3,2,10,7,0, |
12 | 75,0,1,0,0,1,2,0,0,0,3,16,0,12,0,21,1,0,0,76,1,2,0,0,2,10,0,0,2,30,16,0,12, | 12 | 0,88,8,1,128,76,7,2,0,70,5,3,3,82,5,247,127,75,0,1,0,0,1,2,0,0,0,3,16,0,12, |
13 | 0,21,2,0,0,11,1,0,0,88,3,7,128,8,2,0,0,88,3,23,128,59,3,2,0,43,4,0,0,64,4,2, | 13 | 0,21,1,0,0,76,1,2,0,0,2,10,0,0,2,30,16,0,12,0,21,2,0,0,11,1,0,0,88,3,7,128, |
14 | 0,76,3,2,0,88,3,18,128,16,1,14,0,41,3,1,0,3,3,1,0,88,3,14,128,3,1,2,0,88,3, | 14 | 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 | 12,128,59,3,1,0,22,4,1,1,18,5,2,0,41,6,1,0,77,4,4,128,23,8,1,7,59,9,7,0,64, | 15 | 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 | 9,8,0,79,4,252,127,43,4,0,0,64,4,2,0,76,3,2,0,75,0,1,0,0,2,0 | 16 | 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 | 2,0,76,3,2,0,75,0,1,0,0,2,0 | ||
17 | }; | 18 | }; |
18 | 19 | ||
19 | static const struct { const char *name; int ofs; } libbc_map[] = { | 20 | static const struct { const char *name; int ofs; } libbc_map[] = { |
20 | {"math_deg",0}, | 21 | {"math_deg",0}, |
21 | {"math_rad",25}, | 22 | {"math_rad",25}, |
22 | {"table_foreachi",50}, | 23 | {"string_len",50}, |
23 | {"table_foreach",117}, | 24 | {"table_foreachi",69}, |
24 | {"table_getn",188}, | 25 | {"table_foreach",136}, |
25 | {"table_remove",207}, | 26 | {"table_getn",207}, |
26 | {NULL,336} | 27 | {"table_remove",226}, |
28 | {NULL,355} | ||
27 | }; | 29 | }; |
28 | 30 | ||