| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2566 | 2566 |
| 2567 // Constant for denoting key was not found. | 2567 // Constant for denoting key was not found. |
| 2568 static const int kNotFound = -1; | 2568 static const int kNotFound = -1; |
| 2569 | 2569 |
| 2570 static const int kBackPointerStorageIndex = 0; | 2570 static const int kBackPointerStorageIndex = 0; |
| 2571 static const int kEnumCacheIndex = 1; | 2571 static const int kEnumCacheIndex = 1; |
| 2572 static const int kTransitionsIndex = 2; | 2572 static const int kTransitionsIndex = 2; |
| 2573 static const int kFirstIndex = 3; | 2573 static const int kFirstIndex = 3; |
| 2574 | 2574 |
| 2575 // The length of the "bridge" to the enum cache. | 2575 // The length of the "bridge" to the enum cache. |
| 2576 static const int kEnumCacheBridgeLength = 3; | 2576 static const int kEnumCacheBridgeLength = 2; |
| 2577 static const int kEnumCacheBridgeLastAdded = 0; | 2577 static const int kEnumCacheBridgeCacheIndex = 0; |
| 2578 static const int kEnumCacheBridgeCacheIndex = 1; | 2578 static const int kEnumCacheBridgeIndicesCacheIndex = 1; |
| 2579 static const int kEnumCacheBridgeIndicesCacheIndex = 2; | |
| 2580 | 2579 |
| 2581 // Layout description. | 2580 // Layout description. |
| 2582 static const int kBackPointerStorageOffset = FixedArray::kHeaderSize; | 2581 static const int kBackPointerStorageOffset = FixedArray::kHeaderSize; |
| 2583 static const int kEnumCacheOffset = kBackPointerStorageOffset + | 2582 static const int kEnumCacheOffset = kBackPointerStorageOffset + |
| 2584 kPointerSize; | 2583 kPointerSize; |
| 2585 static const int kTransitionsOffset = kEnumCacheOffset + kPointerSize; | 2584 static const int kTransitionsOffset = kEnumCacheOffset + kPointerSize; |
| 2586 static const int kFirstOffset = kTransitionsOffset + kPointerSize; | 2585 static const int kFirstOffset = kTransitionsOffset + kPointerSize; |
| 2587 | 2586 |
| 2588 // Layout description for the bridge array. | 2587 // Layout description for the bridge array. |
| 2589 static const int kEnumCacheBridgeLastAddedOffset = FixedArray::kHeaderSize; | 2588 static const int kEnumCacheBridgeCacheOffset = FixedArray::kHeaderSize; |
| 2590 static const int kEnumCacheBridgeCacheOffset = | |
| 2591 kEnumCacheBridgeLastAddedOffset + kPointerSize; | |
| 2592 | 2589 |
| 2593 // Layout of descriptor. | 2590 // Layout of descriptor. |
| 2594 static const int kDescriptorKey = 0; | 2591 static const int kDescriptorKey = 0; |
| 2595 static const int kDescriptorDetails = 1; | 2592 static const int kDescriptorDetails = 1; |
| 2596 static const int kDescriptorValue = 2; | 2593 static const int kDescriptorValue = 2; |
| 2597 static const int kDescriptorSize = 3; | 2594 static const int kDescriptorSize = 3; |
| 2598 | 2595 |
| 2599 #ifdef OBJECT_PRINT | 2596 #ifdef OBJECT_PRINT |
| 2600 // Print all the descriptors. | 2597 // Print all the descriptors. |
| 2601 inline void PrintDescriptors() { | 2598 inline void PrintDescriptors() { |
| (...skipping 6274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8876 } else { | 8873 } else { |
| 8877 value &= ~(1 << bit_position); | 8874 value &= ~(1 << bit_position); |
| 8878 } | 8875 } |
| 8879 return value; | 8876 return value; |
| 8880 } | 8877 } |
| 8881 }; | 8878 }; |
| 8882 | 8879 |
| 8883 } } // namespace v8::internal | 8880 } } // namespace v8::internal |
| 8884 | 8881 |
| 8885 #endif // V8_OBJECTS_H_ | 8882 #endif // V8_OBJECTS_H_ |
| OLD | NEW |