OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2606 | 2606 |
2607 static const int kEntrySize = 2; // key + value | 2607 static const int kEntrySize = 2; // key + value |
2608 | 2608 |
2609 static const int kFactoryOffset = kHeaderSize; | 2609 static const int kFactoryOffset = kHeaderSize; |
2610 static const int kFingerOffset = kFactoryOffset + kPointerSize; | 2610 static const int kFingerOffset = kFactoryOffset + kPointerSize; |
2611 static const int kCacheSizeOffset = kFingerOffset + kPointerSize; | 2611 static const int kCacheSizeOffset = kFingerOffset + kPointerSize; |
2612 | 2612 |
2613 inline void MakeZeroSize(); | 2613 inline void MakeZeroSize(); |
2614 inline void Clear(); | 2614 inline void Clear(); |
2615 | 2615 |
| 2616 inline int size(); |
| 2617 inline void set_size(int size); |
| 2618 inline int finger_index(); |
| 2619 inline void set_finger_index(int finger_index); |
| 2620 |
2616 // Casting | 2621 // Casting |
2617 static inline JSFunctionResultCache* cast(Object* obj); | 2622 static inline JSFunctionResultCache* cast(Object* obj); |
2618 | 2623 |
2619 #ifdef DEBUG | 2624 #ifdef DEBUG |
2620 void JSFunctionResultCacheVerify(); | 2625 void JSFunctionResultCacheVerify(); |
2621 #endif | 2626 #endif |
2622 }; | 2627 }; |
2623 | 2628 |
2624 | 2629 |
2625 // The cache for maps used by normalized (dictionary mode) objects. | 2630 // The cache for maps used by normalized (dictionary mode) objects. |
(...skipping 3767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6393 } else { | 6398 } else { |
6394 value &= ~(1 << bit_position); | 6399 value &= ~(1 << bit_position); |
6395 } | 6400 } |
6396 return value; | 6401 return value; |
6397 } | 6402 } |
6398 }; | 6403 }; |
6399 | 6404 |
6400 } } // namespace v8::internal | 6405 } } // namespace v8::internal |
6401 | 6406 |
6402 #endif // V8_OBJECTS_H_ | 6407 #endif // V8_OBJECTS_H_ |
OLD | NEW |