White space police state attack.
git-svn-id: svn://10.0.0.236/trunk@200371 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -283,7 +283,7 @@ JSBool
|
||||
js_IsArrayLike(JSContext *cx, JSObject *obj, JSBool *answerp, jsuint *lengthp)
|
||||
{
|
||||
JSClass *clasp;
|
||||
|
||||
|
||||
clasp = OBJ_GET_CLASS(cx, obj);
|
||||
*answerp = (clasp == &js_ArgumentsClass || clasp == &js_ArrayClass);
|
||||
if (!*answerp) {
|
||||
|
||||
@@ -374,9 +374,9 @@ struct JSRuntime {
|
||||
* referenced by cx->fp->rval, or set to a jsid (ITERKEY) result of a native
|
||||
* iterator's it.next() call (where the return value of it.next() is the next
|
||||
* value in the iteration).
|
||||
*
|
||||
*
|
||||
* The ITERKEY case is just an optimization for native iterators, as general
|
||||
* iterators can return an array of length 2 to return a [key, value] pair.
|
||||
* iterators can return an array of length 2 to return a [key, value] pair.
|
||||
*/
|
||||
enum { JS_RVAL2_CLEAR, JS_RVAL2_VALUE, JS_RVAL2_ITERKEY };
|
||||
#endif
|
||||
|
||||
@@ -1300,7 +1300,7 @@ JS_GetScriptFilenameFlags(JSScript *script)
|
||||
JS_ASSERT(script);
|
||||
if (!script->filename)
|
||||
return JSFILENAME_NULL;
|
||||
return js_GetScriptFilenameFlags(script->filename);
|
||||
return js_GetScriptFilenameFlags(script->filename);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
@@ -1321,7 +1321,7 @@ JS_PUBLIC_API(void)
|
||||
JS_FlagSystemObject(JSContext *cx, JSObject *obj)
|
||||
{
|
||||
uint8 *flagp;
|
||||
|
||||
|
||||
flagp = js_GetGCThingFlags(obj);
|
||||
*flagp |= GCF_SYSTEM;
|
||||
}
|
||||
|
||||
@@ -1924,7 +1924,7 @@ BindNameToSlot(JSContext *cx, JSTreeContext *tc, JSParseNode *pn)
|
||||
clasp = OBJ_GET_CLASS(cx, obj);
|
||||
if (clasp != &js_FunctionClass && clasp != &js_CallClass) {
|
||||
/* Check for an eval or debugger frame. */
|
||||
if (fp->flags & JSFRAME_SPECIAL)
|
||||
if (fp->flags & JSFRAME_SPECIAL)
|
||||
return JS_TRUE;
|
||||
|
||||
/*
|
||||
|
||||
@@ -67,7 +67,7 @@ typedef enum JSStmtType {
|
||||
STMT_ELSE = 3, /* else clause of if statement */
|
||||
STMT_SWITCH = 4, /* switch statement */
|
||||
STMT_WITH = 5, /* with statement */
|
||||
STMT_BLOCK_SCOPE = 6, /* let block/expr or array comprehension */
|
||||
STMT_BLOCK_SCOPE = 6, /* let block/expr or array comprehension */
|
||||
STMT_CATCH = 7, /* catch block */
|
||||
STMT_TRY = 8, /* try block */
|
||||
STMT_FINALLY = 9, /* finally block */
|
||||
|
||||
@@ -87,7 +87,7 @@ js_ReportUncaughtException(JSContext *cx);
|
||||
extern JSErrorReport *
|
||||
js_ErrorFromException(JSContext *cx, jsval exn);
|
||||
|
||||
extern const JSErrorFormatString*
|
||||
extern const JSErrorFormatString *
|
||||
js_GetLocalizedErrorMessage(JSContext* cx, void *userRef, const char *locale,
|
||||
const uintN errorNumber);
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ NewKeyValuePair(JSContext *cx, jsid key, jsval val, jsval *rval)
|
||||
{
|
||||
jsval vec[2];
|
||||
JSObject *aobj;
|
||||
|
||||
|
||||
vec[0] = ID_TO_VALUE(key);
|
||||
vec[1] = val;
|
||||
aobj = js_NewArrayObject(cx, 2, vec);
|
||||
|
||||
@@ -1467,7 +1467,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
|
||||
case JSOP_LEAVEBLOCK:
|
||||
{
|
||||
uintN top, depth;
|
||||
|
||||
|
||||
sn = js_GetSrcNote(jp->script, pc);
|
||||
todo = -2;
|
||||
if (sn && SN_TYPE(sn) == SRC_HIDDEN)
|
||||
|
||||
@@ -4084,7 +4084,7 @@ PrimaryExpr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc,
|
||||
|
||||
/*
|
||||
* Create a name node with op JSOP_NAME. We can't set op
|
||||
* JSOP_GETLOCAL here, because we don't yet know the block
|
||||
* JSOP_GETLOCAL here, because we don't yet know the block
|
||||
* depth in the operand stack frame. The code generator
|
||||
* computes that, and it tries to bind all names to slots,
|
||||
* so we must let it do this optimization.
|
||||
@@ -4187,7 +4187,7 @@ PrimaryExpr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc,
|
||||
return NULL;
|
||||
pn3->pn_atom = CURRENT_TOKEN(ts).t_atom;
|
||||
pn3->pn_expr = NULL;
|
||||
|
||||
|
||||
/* We have to fake a 'function' token here. */
|
||||
CURRENT_TOKEN(ts).t_op = JSOP_NOP;
|
||||
CURRENT_TOKEN(ts).type = TOK_FUNCTION;
|
||||
|
||||
@@ -402,9 +402,9 @@ static int cvt_ws(SprintfState *ss, const jschar *ws, int width, int prec,
|
||||
int flags)
|
||||
{
|
||||
int result;
|
||||
/*
|
||||
* Supply NULL as the JSContext; errors are not reported,
|
||||
* and malloc() is used to allocate the buffer buffer.
|
||||
/*
|
||||
* Supply NULL as the JSContext; errors are not reported,
|
||||
* and malloc() is used to allocate the buffer buffer.
|
||||
*/
|
||||
if (ws) {
|
||||
int slen = js_strlen(ws);
|
||||
@@ -997,9 +997,9 @@ static int dosprintf(SprintfState *ss, const char *fmt, va_list ap)
|
||||
|
||||
case 's':
|
||||
if(type == TYPE_INT16) {
|
||||
/*
|
||||
* This would do a simple string/byte conversion
|
||||
* if JS_C_STRINGS_ARE_UTF8 is not defined.
|
||||
/*
|
||||
* This would do a simple string/byte conversion
|
||||
* if JS_C_STRINGS_ARE_UTF8 is not defined.
|
||||
*/
|
||||
u.ws = va_arg(ap, const jschar*);
|
||||
rv = cvt_ws(ss, u.ws, width, prec, flags);
|
||||
|
||||
@@ -172,7 +172,7 @@ JS_Backtrace(int skip)
|
||||
void **bp, **bpdown;
|
||||
|
||||
/* Stack walking code adapted from Kipp's "leaky". */
|
||||
#if defined(__i386)
|
||||
#if defined(__i386)
|
||||
__asm__( "movl %%ebp, %0" : "=g"(bp));
|
||||
#elif defined(__x86_64__)
|
||||
__asm__( "movq %%rbp, %0" : "=g"(bp));
|
||||
|
||||
@@ -130,7 +130,7 @@ struct JSXMLArrayCursor {
|
||||
/*
|
||||
* NB: don't reorder this enum without changing all array initializers that
|
||||
* depend on it in jsxml.c.
|
||||
*/
|
||||
*/
|
||||
typedef enum JSXMLClass {
|
||||
JSXML_CLASS_LIST,
|
||||
JSXML_CLASS_ELEMENT,
|
||||
|
||||
Reference in New Issue
Block a user