/[jscoverage]/trunk/js/jsregexp.h
ViewVC logotype

Diff of /trunk/js/jsregexp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 332 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC
# Line 65  Line 65 
65      JSSubString rightContext;   /* input to right of last match (perl $') */      JSSubString rightContext;   /* input to right of last match (perl $') */
66  };  };
67    
68    extern JS_FRIEND_API(void)
69    js_SaveRegExpStatics(JSContext *cx, JSRegExpStatics *statics,
70                         JSTempValueRooter *tvr);
71    
72    extern JS_FRIEND_API(void)
73    js_RestoreRegExpStatics(JSContext *cx, JSRegExpStatics *statics,
74                            JSTempValueRooter *tvr);
75    
76  /*  /*
77   * This struct holds a bitmap representation of a class from a regexp.   * This struct holds a bitmap representation of a class from a regexp.
78   * There's a list of these referenced by the classList field in the JSRegExp   * There's a list of these referenced by the classList field in the JSRegExp
# Line 131  Line 139 
139  js_ExecuteRegExp(JSContext *cx, JSRegExp *re, JSString *str, size_t *indexp,  js_ExecuteRegExp(JSContext *cx, JSRegExp *re, JSString *str, size_t *indexp,
140                   JSBool test, jsval *rval);                   JSBool test, jsval *rval);
141    
142  /*  extern void
143   * These two add and remove GC roots, respectively, so their calls must be  js_InitRegExpStatics(JSContext *cx);
144   * well-ordered.  
145   */  extern void
146  extern JSBool  js_TraceRegExpStatics(JSTracer *trc, JSContext *acx);
 js_InitRegExpStatics(JSContext *cx, JSRegExpStatics *res);  
147    
148  extern void  extern void
149  js_FreeRegExpStatics(JSContext *cx, JSRegExpStatics *res);  js_FreeRegExpStatics(JSContext *cx);
150    
151  #define VALUE_IS_REGEXP(cx, v)                                                \  #define VALUE_IS_REGEXP(cx, v)                                                \
152      (JSVAL_IS_OBJECT(v) && JSVAL_TO_OBJECT(v) &&                              \      (JSVAL_IS_OBJECT(v) && JSVAL_TO_OBJECT(v) &&                              \
# Line 173  Line 180 
180                     jschar *chars, size_t length, uintN flags);                     jschar *chars, size_t length, uintN flags);
181    
182  extern JSBool  extern JSBool
183  js_XDRRegExp(JSXDRState *xdr, JSObject **objp);  js_XDRRegExpObject(JSXDRState *xdr, JSObject **objp);
184    
185  extern JSObject *  extern JSObject *
186  js_CloneRegExpObject(JSContext *cx, JSObject *obj, JSObject *parent);  js_CloneRegExpObject(JSContext *cx, JSObject *obj, JSObject *parent);

Legend:
Removed from v.332  
changed lines
  Added in v.460

  ViewVC Help
Powered by ViewVC 1.1.24