Trailing whitespace cleanup, no_r=me

This commit is contained in:
David Mandelin 2009-08-20 15:21:14 -07:00
parent 86100e21e2
commit 6e0758faf2
8 changed files with 16 additions and 16 deletions

View File

@ -1341,7 +1341,7 @@ JS_InitStandardClasses(JSContext *cx, JSObject *obj)
/* Define a top-level property 'undefined' with the undefined value. */ /* Define a top-level property 'undefined' with the undefined value. */
atom = cx->runtime->atomState.typeAtoms[JSTYPE_VOID]; atom = cx->runtime->atomState.typeAtoms[JSTYPE_VOID];
if (!obj->defineProperty(cx, ATOM_TO_JSID(atom), JSVAL_VOID, if (!obj->defineProperty(cx, ATOM_TO_JSID(atom), JSVAL_VOID,
JS_PropertyStub, JS_PropertyStub, JSPROP_PERMANENT, JS_PropertyStub, JS_PropertyStub, JSPROP_PERMANENT,
NULL)) { NULL)) {
return JS_FALSE; return JS_FALSE;
} }
@ -1548,7 +1548,7 @@ JS_ResolveStandardClass(JSContext *cx, JSObject *obj, jsval id,
if (idstr == ATOM_TO_STRING(atom)) { if (idstr == ATOM_TO_STRING(atom)) {
*resolved = JS_TRUE; *resolved = JS_TRUE;
return obj->defineProperty(cx, ATOM_TO_JSID(atom), JSVAL_VOID, return obj->defineProperty(cx, ATOM_TO_JSID(atom), JSVAL_VOID,
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JSPROP_PERMANENT, NULL); JSPROP_PERMANENT, NULL);
} }
@ -1643,7 +1643,7 @@ JS_EnumerateStandardClasses(JSContext *cx, JSObject *obj)
atom = rt->atomState.typeAtoms[JSTYPE_VOID]; atom = rt->atomState.typeAtoms[JSTYPE_VOID];
if (!AlreadyHasOwnProperty(cx, obj, atom) && if (!AlreadyHasOwnProperty(cx, obj, atom) &&
!obj->defineProperty(cx, ATOM_TO_JSID(atom), JSVAL_VOID, !obj->defineProperty(cx, ATOM_TO_JSID(atom), JSVAL_VOID,
JS_PropertyStub, JS_PropertyStub, JSPROP_PERMANENT, JS_PropertyStub, JS_PropertyStub, JSPROP_PERMANENT,
NULL)) { NULL)) {
return JS_FALSE; return JS_FALSE;
} }
@ -2971,7 +2971,7 @@ DefinePropertyById(JSContext *cx, JSObject *obj, jsid id, jsval value,
return !!js_DefineNativeProperty(cx, obj, id, value, getter, setter, return !!js_DefineNativeProperty(cx, obj, id, value, getter, setter,
attrs, flags, tinyid, NULL); attrs, flags, tinyid, NULL);
} }
return obj->defineProperty(cx, id, value, getter, setter, attrs, NULL); return obj->defineProperty(cx, id, value, getter, setter, attrs, NULL);
} }
static JSBool static JSBool

View File

@ -3021,7 +3021,7 @@ js_Interpret(JSContext *cx)
/********************** Here we include the operations ***********************/ /********************** Here we include the operations ***********************/
#include "jsops.cpp" #include "jsops.cpp"
/*****************************************************************************/ /*****************************************************************************/
#if !JS_THREADED_INTERP #if !JS_THREADED_INTERP
default: default:
#endif #endif

View File

@ -67,7 +67,7 @@
struct JSONParser struct JSONParser
{ {
JSONParser(JSContext *cx) JSONParser(JSContext *cx)
: hexChar(), numHex(), statep(), stateStack(), rootVal(), objectStack(), : hexChar(), numHex(), statep(), stateStack(), rootVal(), objectStack(),
objectKey(cx), buffer(cx) objectKey(cx), buffer(cx)
{} {}
@ -195,7 +195,7 @@ write_string(JSContext *cx, JSCharBuffer &cb, const jschar *buf, uint32 len)
} }
mark = i + 1; mark = i + 1;
} else if (buf[i] <= 31 || buf[i] == 127) { } else if (buf[i] <= 31 || buf[i] == 127) {
if (!cb.append(&buf[mark], i - mark) || if (!cb.append(&buf[mark], i - mark) ||
!js_AppendLiteral(cb, unicodeEscape)) { !js_AppendLiteral(cb, unicodeEscape)) {
return JS_FALSE; return JS_FALSE;
} }
@ -596,7 +596,7 @@ static JSBool
Walk(JSContext *cx, jsid id, JSObject *holder, jsval reviver, jsval *vp) Walk(JSContext *cx, jsid id, JSObject *holder, jsval reviver, jsval *vp)
{ {
JS_CHECK_RECURSION(cx, return JS_FALSE); JS_CHECK_RECURSION(cx, return JS_FALSE);
if (!holder->getProperty(cx, id, vp)) if (!holder->getProperty(cx, id, vp))
return JS_FALSE; return JS_FALSE;

View File

@ -39,7 +39,7 @@
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
/* This file needs to be included in possibly multiple places. */ /* This file needs to be included in possibly multiple places. */
#if JS_THREADED_INTERP #if JS_THREADED_INTERP
interrupt: interrupt:
#else /* !JS_THREADED_INTERP */ #else /* !JS_THREADED_INTERP */

View File

@ -401,7 +401,7 @@ InitJITLogController()
printf(" abort show trace recording aborts\n"); printf(" abort show trace recording aborts\n");
printf(" stats show trace recording stats\n"); printf(" stats show trace recording stats\n");
printf(" regexp show compilation & entry for regexps\n"); printf(" regexp show compilation & entry for regexps\n");
printf(" treevis spew that tracevis/tree.py can parse\n"); printf(" treevis spew that tracevis/tree.py can parse\n");
printf(" ------ options for Nanojit ------\n"); printf(" ------ options for Nanojit ------\n");
printf(" liveness show LIR liveness at start of rdr pipeline\n"); printf(" liveness show LIR liveness at start of rdr pipeline\n");
printf(" readlir show LIR as it enters the reader pipeline\n"); printf(" readlir show LIR as it enters the reader pipeline\n");
@ -3734,7 +3734,7 @@ class SlotMap : public SlotVisitorBase
checkType(unsigned i, JSTraceType t) checkType(unsigned i, JSTraceType t)
{ {
debug_only_printf(LC_TMTracer, debug_only_printf(LC_TMTracer,
"checkType slot %d: interp=%c typemap=%c isNum=%d promoteInt=%d\n", "checkType slot %d: interp=%c typemap=%c isNum=%d promoteInt=%d\n",
i, i,
typeChar[getCoercedType(*slots[i].v)], typeChar[getCoercedType(*slots[i].v)],
typeChar[t], typeChar[t],
@ -5852,7 +5852,7 @@ LeaveTree(InterpState& state, VMSideExit* lr)
JS_ASSERT(innermost->root()->getTreeInfo()->nGlobalTypes() > innermost->numGlobalSlots); JS_ASSERT(innermost->root()->getTreeInfo()->nGlobalTypes() > innermost->numGlobalSlots);
typeMap.ensure(ngslots); typeMap.ensure(ngslots);
#ifdef DEBUG #ifdef DEBUG
unsigned check_ngslots = unsigned check_ngslots =
#endif #endif
BuildGlobalTypeMapFromInnerTree(typeMap, innermost); BuildGlobalTypeMapFromInnerTree(typeMap, innermost);
JS_ASSERT(check_ngslots == ngslots); JS_ASSERT(check_ngslots == ngslots);
@ -9731,7 +9731,7 @@ TraceRecorder::incName(jsint incr, bool pre)
LIns* v_ins; LIns* v_ins;
LIns* v_after; LIns* v_after;
NameResult nr; NameResult nr;
CHECK_STATUS(name(vp, v_ins, nr)); CHECK_STATUS(name(vp, v_ins, nr));
CHECK_STATUS(incHelper(*vp, v_ins, v_after, incr)); CHECK_STATUS(incHelper(*vp, v_ins, v_after, incr));
LIns* v_result = pre ? v_after : v_ins; LIns* v_result = pre ? v_after : v_ins;

View File

@ -740,7 +740,7 @@ class TraceRecorder : public avmplus::GCObject {
JS_REQUIRES_STACK JSRecordingStatus inc(jsval& v, jsint incr, bool pre = true); JS_REQUIRES_STACK JSRecordingStatus inc(jsval& v, jsint incr, bool pre = true);
JS_REQUIRES_STACK JSRecordingStatus inc(jsval v, nanojit::LIns*& v_ins, jsint incr, JS_REQUIRES_STACK JSRecordingStatus inc(jsval v, nanojit::LIns*& v_ins, jsint incr,
bool pre = true); bool pre = true);
JS_REQUIRES_STACK JSRecordingStatus incHelper(jsval v, nanojit::LIns* v_ins, JS_REQUIRES_STACK JSRecordingStatus incHelper(jsval v, nanojit::LIns* v_ins,
nanojit::LIns*& v_after, jsint incr); nanojit::LIns*& v_after, jsint incr);
JS_REQUIRES_STACK JSRecordingStatus incProp(jsint incr, bool pre = true); JS_REQUIRES_STACK JSRecordingStatus incProp(jsint incr, bool pre = true);
JS_REQUIRES_STACK JSRecordingStatus incElem(jsint incr, bool pre = true); JS_REQUIRES_STACK JSRecordingStatus incElem(jsint incr, bool pre = true);

View File

@ -555,7 +555,7 @@ JSTempVector<T,N>::~JSTempVector()
*/ */
template <class T, size_t N> template <class T, size_t N>
inline bool inline bool
JSTempVector<T,N>::calculateNewCapacity(size_t curSize, size_t sizeInc, JSTempVector<T,N>::calculateNewCapacity(size_t curSize, size_t sizeInc,
size_t &newCap) size_t &newCap)
{ {
size_t newMinCap = curSize + sizeInc; size_t newMinCap = curSize + sizeInc;

View File

@ -3478,7 +3478,7 @@ retry:
} }
xobj = js_GetXMLObject(cx, kid); xobj = js_GetXMLObject(cx, kid);
vobj = js_GetXMLObject(cx, vkid); vobj = js_GetXMLObject(cx, vkid);
if (!xobj || !vobj || if (!xobj || !vobj ||
!js_TestXMLEquality(cx, xobj, OBJECT_TO_JSVAL(vobj), bp)) !js_TestXMLEquality(cx, xobj, OBJECT_TO_JSVAL(vobj), bp))
return JS_FALSE; return JS_FALSE;
if (!*bp) if (!*bp)