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 5968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5979 // - Size information about the object | 5979 // - Size information about the object |
5980 // - How to iterate over an object (for garbage collection) | 5980 // - How to iterate over an object (for garbage collection) |
5981 class Map: public HeapObject { | 5981 class Map: public HeapObject { |
5982 public: | 5982 public: |
5983 // Instance size. | 5983 // Instance size. |
5984 // Size in bytes or kVariableSizeSentinel if instances do not have | 5984 // Size in bytes or kVariableSizeSentinel if instances do not have |
5985 // a fixed size. | 5985 // a fixed size. |
5986 inline int instance_size(); | 5986 inline int instance_size(); |
5987 inline void set_instance_size(int value); | 5987 inline void set_instance_size(int value); |
5988 | 5988 |
| 5989 // Get and set the instance size of a map using no barrier semantics. |
| 5990 inline int nobarrier_instance_size(); |
| 5991 inline void nobarrier_set_instance_size(int value); |
| 5992 |
5989 // Count of properties allocated in the object. | 5993 // Count of properties allocated in the object. |
5990 inline int inobject_properties(); | 5994 inline int inobject_properties(); |
5991 inline void set_inobject_properties(int value); | 5995 inline void set_inobject_properties(int value); |
5992 | 5996 |
5993 // Count of property fields pre-allocated in the object when first allocated. | 5997 // Count of property fields pre-allocated in the object when first allocated. |
5994 inline int pre_allocated_property_fields(); | 5998 inline int pre_allocated_property_fields(); |
5995 inline void set_pre_allocated_property_fields(int value); | 5999 inline void set_pre_allocated_property_fields(int value); |
5996 | 6000 |
5997 // Instance type. | 6001 // Instance type. |
5998 inline InstanceType instance_type(); | 6002 inline InstanceType instance_type(); |
(...skipping 4987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10986 } else { | 10990 } else { |
10987 value &= ~(1 << bit_position); | 10991 value &= ~(1 << bit_position); |
10988 } | 10992 } |
10989 return value; | 10993 return value; |
10990 } | 10994 } |
10991 }; | 10995 }; |
10992 | 10996 |
10993 } } // namespace v8::internal | 10997 } } // namespace v8::internal |
10994 | 10998 |
10995 #endif // V8_OBJECTS_H_ | 10999 #endif // V8_OBJECTS_H_ |
OLD | NEW |