summaryrefslogtreecommitdiff
path: root/src/vm_x86.dasc
diff options
context:
space:
mode:
authorMike Pall <mike>2012-10-07 17:11:39 +0200
committerMike Pall <mike>2012-10-07 17:11:39 +0200
commit2f5ed5d0df518a08a52fc125473b17d3a46c2267 (patch)
treec2ea38696fa52c2d1d65ca9c20a7552fbe2da011 /src/vm_x86.dasc
parent0561a5693884d76db5b75f7cc746478b325b311b (diff)
downloadluajit2-2f5ed5d0df518a08a52fc125473b17d3a46c2267.tar.gz
From Lua 5.2: Add string.rep(s, n, sep).
Diffstat (limited to 'src/vm_x86.dasc')
-rw-r--r--src/vm_x86.dasc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc
index 75683225..92e98f98 100644
--- a/src/vm_x86.dasc
+++ b/src/vm_x86.dasc
@@ -2437,8 +2437,9 @@ static void build_subroutines(BuildCtx *ctx)
| xor RC, RC // Zero length. Any ptr in RB is ok.
| jmp <4
|
- |.ffunc_2 string_rep // Only handle the 1-char case inline.
+ |.ffunc string_rep // Only handle the 1-char case inline.
| ffgccheck
+ | cmp NARGS:RD, 2+1; jne ->fff_fallback // Exactly 2 arguments.
| cmp dword [BASE+4], LJ_TSTR; jne ->fff_fallback
| cmp dword [BASE+12], LJ_TISNUM
| mov STR:RB, [BASE]