- Avoid unnecessary FASTCALL builtin wrappers for existing js_* library-private or friend functions, which could be (and now are) fastcall (JS_FASTCALL). A couple of builtins avoid name collisions by using js_Fast instead of just js_ as their name prefix.

- Use GCF_DONT_BLOCK from fastcall builtins that call into the GC allocator (mostly; a few places need help still, or better: need to avoid allocation).
- Cope with C clients of jscntxt.h and its include files (these hacks should go away).
- Naming convention and function definition line-break style nit-picks.
This commit is contained in:
Brendan Eich
2008-08-10 00:39:18 -07:00
parent 205dff6a34
commit bcc1a490db
10 changed files with 93 additions and 83 deletions

View File

@@ -434,7 +434,7 @@ js_ValueToIterator(JSContext *cx, uintN flags, jsval *vp)
goto out;
}
JS_FRIEND_API(JSBool)
JS_FRIEND_API(bool) JS_FASTCALL
js_CloseIterator(JSContext *cx, jsval v)
{
JSObject *obj;