Use form feeds above major section header comments, for easier navigation with Emacs.
authorJim Blandy <jimb@mozilla.com>
Tue, 24 May 2011 14:12:19 -0700
changeset 74450 a3369f2c2600822d9325bb767aa804eec7f1985a
parent 74449 2c50ea28d5b625728dd763e587d4a4fc57538fc9
child 74451 fd5ca689f2d6c2d4fd0f56b4aa105a1e0349e7b8
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
milestone6.0a1
Use form feeds above major section header comments, for easier navigation with Emacs.
js/src/jsdbg.cpp
--- a/js/src/jsdbg.cpp
+++ b/js/src/jsdbg.cpp
@@ -46,16 +46,17 @@
 #include "jsobj.h"
 #include "jswrapper.h"
 #include "jsinterpinlines.h"
 #include "jsobjinlines.h"
 #include "vm/Stack-inl.h"
 
 using namespace js;
 
+
 // === Forward declarations
 
 extern Class DebugFrame_class;
 
 enum {
     JSSLOT_DEBUGFRAME_OWNER,
     JSSLOT_DEBUGFRAME_ARGUMENTS,
     JSSLOT_DEBUGFRAME_COUNT
@@ -71,16 +72,17 @@ enum {
 extern Class DebugObject_class;
 
 enum {
     JSSLOT_DEBUGOBJECT_OWNER,
     JSSLOT_DEBUGOBJECT_CCW,  // cross-compartment wrapper
     JSSLOT_DEBUGOBJECT_COUNT
 };
 
+
 // === Utils
 
 bool
 ReportMoreArgsNeeded(JSContext *cx, const char *name, uintN required)
 {
     JS_ASSERT(required > 0);
     JS_ASSERT(required <= 10);
     char s[2];
@@ -131,16 +133,17 @@ CheckThisClass(JSContext *cx, Value *vp,
 
 #define THISOBJ(cx, vp, classname, fnname, thisobj, private)                 \
     JSObject *thisobj =                                                      \
         CheckThisClass(cx, vp, &js::classname::jsclass, fnname);             \
     if (!thisobj)                                                            \
         return false;                                                        \
     js::classname *private = (classname *) thisobj->getPrivate();
 
+
 // === Debug hook dispatch
 
 enum {
     JSSLOT_DEBUG_FRAME_PROTO,
     JSSLOT_DEBUG_OBJECT_PROTO,
     JSSLOT_DEBUG_COUNT
 };
 
@@ -508,16 +511,17 @@ Debug::dispatchHook(JSContext *cx, js::V
             JSTrapStatus st = (dbg->*handleEvent)(cx, vp);
             if (st != JSTRAP_CONTINUE)
                 return st;
         }
     }
     return JSTRAP_CONTINUE;
 }
 
+
 // === Debug JSObjects
 
 bool
 Debug::mark(GCMarker *trc, JSCompartment *comp, JSGCInvocationKind gckind)
 {
     // Debuggers are marked during the incremental long tail of the GC mark
     // phase. This method returns true if it has to mark anything; GC calls it
     // repeatedly until it returns false.
@@ -1040,16 +1044,17 @@ JSFunctionSpec Debug::methods[] = {
     JS_FN("addDebuggee", Debug::addDebuggee, 1, 0),
     JS_FN("removeDebuggee", Debug::removeDebuggee, 1, 0),
     JS_FN("hasDebuggee", Debug::hasDebuggee, 1, 0),
     JS_FN("getDebuggees", Debug::getDebuggees, 0, 0),
     JS_FN("getYoungestFrame", Debug::getYoungestFrame, 0, 0),
     JS_FS_END
 };
 
+
 // === Debug.Frame
 
 Class DebugFrame_class = {
     "Frame", JSCLASS_HAS_PRIVATE | JSCLASS_HAS_RESERVED_SLOTS(JSSLOT_DEBUGFRAME_COUNT),
     PropertyStub, PropertyStub, PropertyStub, StrictPropertyStub,
     EnumerateStub, ResolveStub, ConvertStub
 };
 
@@ -1307,16 +1312,17 @@ static JSPropertySpec DebugFrame_propert
     JS_PS_END
 };
 
 static JSFunctionSpec DebugFrame_methods[] = {
     JS_FN("eval", DebugFrame_eval, 1, 0),
     JS_FS_END
 };
 
+
 // === Debug.Object
 
 Class DebugObject_class = {
     "Object", JSCLASS_HAS_PRIVATE | JSCLASS_HAS_RESERVED_SLOTS(JSSLOT_DEBUGOBJECT_COUNT),
     PropertyStub, PropertyStub, PropertyStub, StrictPropertyStub,
     EnumerateStub, ResolveStub, ConvertStub, FinalizeStub,
 };
 
@@ -1516,16 +1522,17 @@ static JSPropertySpec DebugObject_proper
     JS_PS_END
 };
 
 static JSFunctionSpec DebugObject_methods[] = {
     JS_FN("apply", DebugObject_apply, 0, 0),
     JS_FS_END
 };
 
+
 // === Glue
 
 extern JS_PUBLIC_API(JSBool)
 JS_DefineDebugObject(JSContext *cx, JSObject *obj)
 {
     JSObject *objProto;
     if (!js_GetClassPrototype(cx, obj, JSProto_Object, &objProto))
         return false;