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/vm_x86.dasc | |
parent | 47fa9a8d8ff7123e160abfc18c88589bbb7f4b58 (diff) | |
download | luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.tar.gz luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.tar.bz2 luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.zip |
Replace string.len with bytecode builtin.
Diffstat (limited to '')
-rw-r--r-- | src/vm_x86.dasc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc index 68e23847..3f2959be 100644 --- a/src/vm_x86.dasc +++ b/src/vm_x86.dasc | |||
@@ -2202,15 +2202,6 @@ static void build_subroutines(BuildCtx *ctx) | |||
2202 | | | 2202 | | |
2203 | |//-- String library ----------------------------------------------------- | 2203 | |//-- String library ----------------------------------------------------- |
2204 | | | 2204 | | |
2205 | |.ffunc_1 string_len | ||
2206 | | cmp dword [BASE+4], LJ_TSTR; jne ->fff_fallback | ||
2207 | | mov STR:RB, [BASE] | ||
2208 | |.if DUALNUM | ||
2209 | | mov RB, dword STR:RB->len; jmp ->fff_resi | ||
2210 | |.else | ||
2211 | | cvtsi2sd xmm0, dword STR:RB->len; jmp ->fff_resxmm0 | ||
2212 | |.endif | ||
2213 | | | ||
2214 | |.ffunc string_byte // Only handle the 1-arg case here. | 2205 | |.ffunc string_byte // Only handle the 1-arg case here. |
2215 | | cmp NARGS:RD, 1+1; jne ->fff_fallback | 2206 | | cmp NARGS:RD, 1+1; jne ->fff_fallback |
2216 | | cmp dword [BASE+4], LJ_TSTR; jne ->fff_fallback | 2207 | | cmp dword [BASE+4], LJ_TSTR; jne ->fff_fallback |