Avoid overlong lines per modeline comments.
authorBrendan Eich <brendan@mozilla.org>
Mon, 02 Jun 2008 17:16:14 -0700
changeset 17197 6b03a869bb1cea802988c7eac042c67a82122ee7
parent 17196 5c416b3706ae7db79a9bc27563cf03d383c32790
child 17198 69e89ed25d335659980fe1ec708dddeb1dc715e8
push id1452
push usershaver@mozilla.com
push dateFri, 22 Aug 2008 00:08:22 +0000
treeherdermozilla-central@d13bb0868596 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1a1pre
Avoid overlong lines per modeline comments.
js/src/jsinterpinlines.h
--- a/js/src/jsinterpinlines.h
+++ b/js/src/jsinterpinlines.h
@@ -291,17 +291,18 @@ PRIMITIVE(guard_jsval_is_null)(jsval& v)
     return JSVAL_IS_NULL(v);
 }
 
 /*
  * Optimized conversion function that test for the desired type in v before
  * homing sp and calling a conversion function.
  */
 static inline bool
-PRIMITIVE(value_to_number)(JSContext* cx, JSFrameRegs& regs, int n, jsval& v, jsdouble& d)
+PRIMITIVE(value_to_number)(JSContext* cx, JSFrameRegs& regs, int n, jsval& v,
+                           jsdouble& d)
 {
     JS_ASSERT(v == regs.sp[n]);
     if (guard_jsval_is_int(v)) {
         int i;
         prim_jsval_to_int(v, i);
         prim_int_to_double(i, d);
     } else if (guard_jsval_is_double(v)) {
         prim_jsval_to_double(v, d);
@@ -434,46 +435,49 @@ PRIMITIVE(guard_obj_is_null)(JSObject*& 
 static inline void
 PRIMITIVE(call_ValueToNonNullObject)(JSContext* cx, jsval& v, JSObject*& obj)
 {
     obj = js_ValueToNonNullObject(cx, v);
 }
 
 static inline bool
 PRIMITIVE(value_to_object)(JSContext* cx, JSFrameRegs& regs, int n, jsval& v,
-                JSObject*& obj)
+                           JSObject*& obj)
 {
     if (!guard_jsval_is_primitive(v)) {
         prim_jsval_to_object(v, obj);
     } else {
         call_ValueToNonNullObject(cx, v, obj);
         if (guard_obj_is_null(obj))
             return JS_FALSE;
         jsval x;
         prim_object_to_jsval(obj, x);
         prim_store_stack(regs, n, x);
     }
     return JS_TRUE;
 }
 
 static inline bool
-PRIMITIVE(fetch_object)(JSContext* cx, JSFrameRegs& regs, int n, jsval& v, JSObject*& obj)
+PRIMITIVE(fetch_object)(JSContext* cx, JSFrameRegs& regs, int n, jsval& v,
+                        JSObject*& obj)
 {
     prim_fetch_stack(regs, n, v);
     return value_to_object(cx, regs, n, v, obj);
 }
 
 static inline bool
-PRIMITIVE(call_obj_default_value)(JSContext* cx, JSObject*& obj, JSType hint, jsval* vp)
+PRIMITIVE(call_obj_default_value)(JSContext* cx, JSObject*& obj, JSType hint,
+                                  jsval* vp)
 {
     return OBJ_DEFAULT_VALUE(cx, obj, hint, vp);
 }
 
 static inline bool
-PRIMITIVE(default_value)(JSContext* cx, JSFrameRegs& regs, int n, JSType hint, jsval& v)
+PRIMITIVE(default_value)(JSContext* cx, JSFrameRegs& regs, int n, JSType hint,
+                         jsval& v)
 {
     JS_ASSERT(!JSVAL_IS_PRIMITIVE(v));
     JS_ASSERT(v == regs.sp[n]);
     JSObject* obj;
     prim_jsval_to_object(v, obj);
     if (!call_obj_default_value(cx, obj, hint, &regs.sp[n])) 
         return JS_FALSE;
     prim_fetch_stack(regs, n, v);
@@ -494,18 +498,18 @@ PRIMITIVE(prim_dsub)(jsdouble& a, jsdoub
 
 static inline void
 PRIMITIVE(prim_dmul)(jsdouble& a, jsdouble& b, jsdouble& r)
 {
     r = a * b;
 }
 
 static inline void
-PRIMITIVE(prim_ddiv)(JSContext* cx, JSRuntime* rt, JSFrameRegs& regs, int n, jsdouble& a,
-          jsdouble& b)
+PRIMITIVE(prim_ddiv)(JSContext* cx, JSRuntime* rt, JSFrameRegs& regs, int n,
+                     jsdouble& a, jsdouble& b)
 {
     if (b == 0) {
         jsval* vp = &regs.sp[n];
 #ifdef XP_WIN
         /* XXX MSVC miscompiles such that (NaN == 0) */
         if (JSDOUBLE_IS_NaN(b))
             *vp = DOUBLE_TO_JSVAL(rt->jsNaN);
         else
@@ -518,18 +522,18 @@ PRIMITIVE(prim_ddiv)(JSContext* cx, JSRu
             *vp = DOUBLE_TO_JSVAL(rt->jsPositiveInfinity);
     } else {
         jsdouble r = a / b;
         store_number(cx, regs, n, r);
     }
 }
 
 static inline void
-PRIMITIVE(prim_dmod)(JSContext* cx, JSRuntime* rt, JSFrameRegs& regs, int n, jsdouble& a,
-          jsdouble& b)
+PRIMITIVE(prim_dmod)(JSContext* cx, JSRuntime* rt, JSFrameRegs& regs, int n,
+                     jsdouble& a, jsdouble& b)
 {
     if (b == 0) {
         store_stack_constant(regs, -1, DOUBLE_TO_JSVAL(rt->jsNaN));
     } else {
         jsdouble r;
 #ifdef XP_WIN
         /* Workaround MS fmod bug where 42 % (1/0) => NaN, not 42. */
         if (!(JSDOUBLE_IS_FINITE(a) && JSDOUBLE_IS_INFINITE(b)))