OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 3870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3881 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; | 3881 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; |
3882 static const int kIrregexpCaptureCountOffset = | 3882 static const int kIrregexpCaptureCountOffset = |
3883 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; | 3883 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; |
3884 | 3884 |
3885 // In-object fields. | 3885 // In-object fields. |
3886 static const int kSourceFieldIndex = 0; | 3886 static const int kSourceFieldIndex = 0; |
3887 static const int kGlobalFieldIndex = 1; | 3887 static const int kGlobalFieldIndex = 1; |
3888 static const int kIgnoreCaseFieldIndex = 2; | 3888 static const int kIgnoreCaseFieldIndex = 2; |
3889 static const int kMultilineFieldIndex = 3; | 3889 static const int kMultilineFieldIndex = 3; |
3890 static const int kLastIndexFieldIndex = 4; | 3890 static const int kLastIndexFieldIndex = 4; |
| 3891 static const int kInObjectFieldCount = 5; |
3891 }; | 3892 }; |
3892 | 3893 |
3893 | 3894 |
3894 class CompilationCacheShape { | 3895 class CompilationCacheShape { |
3895 public: | 3896 public: |
3896 static inline bool IsMatch(HashTableKey* key, Object* value) { | 3897 static inline bool IsMatch(HashTableKey* key, Object* value) { |
3897 return key->IsMatch(value); | 3898 return key->IsMatch(value); |
3898 } | 3899 } |
3899 | 3900 |
3900 static inline uint32_t Hash(HashTableKey* key) { | 3901 static inline uint32_t Hash(HashTableKey* key) { |
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5364 } else { | 5365 } else { |
5365 value &= ~(1 << bit_position); | 5366 value &= ~(1 << bit_position); |
5366 } | 5367 } |
5367 return value; | 5368 return value; |
5368 } | 5369 } |
5369 }; | 5370 }; |
5370 | 5371 |
5371 } } // namespace v8::internal | 5372 } } // namespace v8::internal |
5372 | 5373 |
5373 #endif // V8_OBJECTS_H_ | 5374 #endif // V8_OBJECTS_H_ |
OLD | NEW |