OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 uc16 from_; | 382 uc16 from_; |
383 uc16 to_; | 383 uc16 to_; |
384 OutSet* out_set_; | 384 OutSet* out_set_; |
385 }; | 385 }; |
386 | 386 |
387 class Config { | 387 class Config { |
388 public: | 388 public: |
389 typedef uc16 Key; | 389 typedef uc16 Key; |
390 typedef Entry Value; | 390 typedef Entry Value; |
391 static const uc16 kNoKey; | 391 static const uc16 kNoKey; |
392 static const Entry kNoValue; | 392 static const Entry NoValue() { return Value(); } |
393 static inline int Compare(uc16 a, uc16 b) { | 393 static inline int Compare(uc16 a, uc16 b) { |
394 if (a == b) | 394 if (a == b) |
395 return 0; | 395 return 0; |
396 else if (a < b) | 396 else if (a < b) |
397 return -1; | 397 return -1; |
398 else | 398 else |
399 return 1; | 399 return 1; |
400 } | 400 } |
401 }; | 401 }; |
402 | 402 |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 int* vector_; | 1491 int* vector_; |
1492 int offsets_vector_length_; | 1492 int offsets_vector_length_; |
1493 | 1493 |
1494 friend class ExternalReference; | 1494 friend class ExternalReference; |
1495 }; | 1495 }; |
1496 | 1496 |
1497 | 1497 |
1498 } } // namespace v8::internal | 1498 } } // namespace v8::internal |
1499 | 1499 |
1500 #endif // V8_JSREGEXP_H_ | 1500 #endif // V8_JSREGEXP_H_ |
OLD | NEW |