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 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4800 | 4800 |
4801 | 4801 |
4802 // FreeSpace represents fixed sized areas of the heap that are not currently in | 4802 // FreeSpace represents fixed sized areas of the heap that are not currently in |
4803 // use. Used by the heap and GC. | 4803 // use. Used by the heap and GC. |
4804 class FreeSpace: public HeapObject { | 4804 class FreeSpace: public HeapObject { |
4805 public: | 4805 public: |
4806 // [size]: size of the free space including the header. | 4806 // [size]: size of the free space including the header. |
4807 inline int size(); | 4807 inline int size(); |
4808 inline void set_size(int value); | 4808 inline void set_size(int value); |
4809 | 4809 |
| 4810 inline int synchronized_size(); |
| 4811 inline void synchronized_set_size(int value); |
| 4812 |
4810 inline int Size() { return size(); } | 4813 inline int Size() { return size(); } |
4811 | 4814 |
4812 // Casting. | 4815 // Casting. |
4813 static inline FreeSpace* cast(Object* obj); | 4816 static inline FreeSpace* cast(Object* obj); |
4814 | 4817 |
4815 // Dispatched behavior. | 4818 // Dispatched behavior. |
4816 DECLARE_PRINTER(FreeSpace) | 4819 DECLARE_PRINTER(FreeSpace) |
4817 DECLARE_VERIFIER(FreeSpace) | 4820 DECLARE_VERIFIER(FreeSpace) |
4818 | 4821 |
4819 // Layout description. | 4822 // Layout description. |
(...skipping 6170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10990 } else { | 10993 } else { |
10991 value &= ~(1 << bit_position); | 10994 value &= ~(1 << bit_position); |
10992 } | 10995 } |
10993 return value; | 10996 return value; |
10994 } | 10997 } |
10995 }; | 10998 }; |
10996 | 10999 |
10997 } } // namespace v8::internal | 11000 } } // namespace v8::internal |
10998 | 11001 |
10999 #endif // V8_OBJECTS_H_ | 11002 #endif // V8_OBJECTS_H_ |
OLD | NEW |