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 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2321 class JSFunctionResultCache: public FixedArray { | 2321 class JSFunctionResultCache: public FixedArray { |
2322 public: | 2322 public: |
2323 static const int kFactoryIndex = 0; | 2323 static const int kFactoryIndex = 0; |
2324 static const int kFingerIndex = kFactoryIndex + 1; | 2324 static const int kFingerIndex = kFactoryIndex + 1; |
2325 static const int kCacheSizeIndex = kFingerIndex + 1; | 2325 static const int kCacheSizeIndex = kFingerIndex + 1; |
2326 static const int kDummyIndex = kCacheSizeIndex + 1; | 2326 static const int kDummyIndex = kCacheSizeIndex + 1; |
2327 static const int kEntriesIndex = kDummyIndex + 1; | 2327 static const int kEntriesIndex = kDummyIndex + 1; |
2328 | 2328 |
2329 static const int kEntrySize = 2; // key + value | 2329 static const int kEntrySize = 2; // key + value |
2330 | 2330 |
| 2331 static const int kFactoryOffset = kHeaderSize; |
| 2332 static const int kFingerOffset = kFactoryOffset + kPointerSize; |
| 2333 static const int kCacheSizeOffset = kFingerOffset + kPointerSize; |
| 2334 |
2331 inline void MakeZeroSize(); | 2335 inline void MakeZeroSize(); |
2332 inline void Clear(); | 2336 inline void Clear(); |
2333 | 2337 |
2334 // Casting | 2338 // Casting |
2335 static inline JSFunctionResultCache* cast(Object* obj); | 2339 static inline JSFunctionResultCache* cast(Object* obj); |
2336 | 2340 |
2337 #ifdef DEBUG | 2341 #ifdef DEBUG |
2338 void JSFunctionResultCacheVerify(); | 2342 void JSFunctionResultCacheVerify(); |
2339 #endif | 2343 #endif |
2340 }; | 2344 }; |
(...skipping 2818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5159 } else { | 5163 } else { |
5160 value &= ~(1 << bit_position); | 5164 value &= ~(1 << bit_position); |
5161 } | 5165 } |
5162 return value; | 5166 return value; |
5163 } | 5167 } |
5164 }; | 5168 }; |
5165 | 5169 |
5166 } } // namespace v8::internal | 5170 } } // namespace v8::internal |
5167 | 5171 |
5168 #endif // V8_OBJECTS_H_ | 5172 #endif // V8_OBJECTS_H_ |
OLD | NEW |