aboutsummaryrefslogtreecommitdiff
path: root/src/vm_x86.dasc
diff options
context:
space:
mode:
authorMike Pall <mike>2013-02-23 02:17:50 +0100
committerMike Pall <mike>2013-02-23 02:17:50 +0100
commit60e380fd936ef45b57e89d8df23ab16325f29e9b (patch)
treee4b60a535833ff6415e252ad228b965e9656a4a2 /src/vm_x86.dasc
parent73ef845fcaf65937ad63e9cf6b681cb3e61f4504 (diff)
downloadluajit-60e380fd936ef45b57e89d8df23ab16325f29e9b.tar.gz
luajit-60e380fd936ef45b57e89d8df23ab16325f29e9b.tar.bz2
luajit-60e380fd936ef45b57e89d8df23ab16325f29e9b.zip
Replace table.getn/foreach/foreachi with bytecode builtins.
Diffstat (limited to '')
-rw-r--r--src/vm_x86.dasc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc
index 0c4b0ce6..0a53ffde 100644
--- a/src/vm_x86.dasc
+++ b/src/vm_x86.dasc
@@ -2434,21 +2434,6 @@ static void build_subroutines(BuildCtx *ctx)
2434 |ffstring_case string_lower, 0x41, 0x5a 2434 |ffstring_case string_lower, 0x41, 0x5a
2435 |ffstring_case string_upper, 0x61, 0x7a 2435 |ffstring_case string_upper, 0x61, 0x7a
2436 | 2436 |
2437 |//-- Table library ------------------------------------------------------
2438 |
2439 |.ffunc_1 table_getn
2440 | cmp dword [BASE+4], LJ_TTAB; jne ->fff_fallback
2441 | mov RB, BASE // Save BASE.
2442 | mov TAB:FCARG1, [BASE]
2443 | call extern lj_tab_len@4 // LJ_FASTCALL (GCtab *t)
2444 | // Length of table returned in eax (RD).
2445 | mov BASE, RB // Restore BASE.
2446 |.if DUALNUM
2447 | mov RB, RD; jmp ->fff_resi
2448 |.else
2449 | cvtsi2sd xmm0, RD; jmp ->fff_resxmm0
2450 |.endif
2451 |
2452 |//-- Bit library -------------------------------------------------------- 2437 |//-- Bit library --------------------------------------------------------
2453 | 2438 |
2454 |.define TOBIT_BIAS, 0x59c00000 // 2^52 + 2^51 (float, not double!). 2439 |.define TOBIT_BIAS, 0x59c00000 // 2^52 + 2^51 (float, not double!).