JSOP_ADD over strings

This commit is contained in:
2008-07-29 07:53:31 -07:00
parent 10b4ab370f
commit ae63953ca3
4 changed files with 20 additions and 2 deletions

View File

@@ -186,6 +186,14 @@ builtin_String_p_substring_1(JSContext *cx, JSString *str, jsint begin)
return js_NewDependentString(cx, str, (size_t)begin, (size_t)(end - begin));
}
JSString* FASTCALL
builtin_ConcatStrings(JSContext *cx, JSString* left, JSString* right)
{
/* XXX check for string freelist space */
/* XXX just make js_ConcatStrings FASTCALL? */
return js_ConcatStrings(cx, left, right);
}
#define LO ARGSIZE_LO
#define F ARGSIZE_F
#define Q ARGSIZE_Q