Changeset 67790 in webkit for trunk/JavaScriptCore/yarr/RegexPattern.h
- Timestamp:
- Sep 18, 2010, 2:04:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexPattern.h
r60273 r67790 208 208 PatternAlternative(PatternDisjunction* disjunction) 209 209 : m_parent(disjunction) 210 , m_onceThrough(false) 211 , m_hasFixedSize(false) 212 , m_startsWithBOL(false) 213 , m_containsBOL(false) 210 214 { 211 215 } … … 221 225 ASSERT(m_terms.size()); 222 226 m_terms.shrink(m_terms.size() - 1); 227 } 228 229 void setOnceThrough() 230 { 231 m_onceThrough = true; 232 } 233 234 bool onceThrough() 235 { 236 return m_onceThrough; 223 237 } 224 238 … … 226 240 PatternDisjunction* m_parent; 227 241 unsigned m_minimumSize; 228 bool m_hasFixedSize; 242 bool m_onceThrough : 1; 243 bool m_hasFixedSize : 1; 244 bool m_startsWithBOL : 1; 245 bool m_containsBOL : 1; 229 246 }; 230 247 … … 232 249 PatternDisjunction(PatternAlternative* parent = 0) 233 250 : m_parent(parent) 251 , m_hasFixedSize(false) 234 252 { 235 253 } … … 270 288 : m_ignoreCase(ignoreCase) 271 289 , m_multiline(multiline) 290 , m_containsBackreferences(false) 291 , m_containsBOL(false) 272 292 , m_numSubpatterns(0) 273 293 , m_maxBackReference(0) 274 , m_containsBackreferences(false)275 294 , newlineCached(0) 276 295 , digitsCached(0) … … 295 314 296 315 m_containsBackreferences = false; 316 m_containsBOL = false; 297 317 298 318 newlineCached = 0; … … 358 378 } 359 379 360 bool m_ignoreCase; 361 bool m_multiline; 380 bool m_ignoreCase : 1; 381 bool m_multiline : 1; 382 bool m_containsBackreferences : 1; 383 bool m_containsBOL : 1; 362 384 unsigned m_numSubpatterns; 363 385 unsigned m_maxBackReference; 364 bool m_containsBackreferences;365 386 PatternDisjunction* m_body; 366 387 Vector<PatternDisjunction*, 4> m_disjunctions;
Note:
See TracChangeset
for help on using the changeset viewer.