| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 9848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9859 }; | 9859 }; |
| 9860 | 9860 |
| 9861 | 9861 |
| 9862 class WeakCell : public HeapObject { | 9862 class WeakCell : public HeapObject { |
| 9863 public: | 9863 public: |
| 9864 inline Object* value() const; | 9864 inline Object* value() const; |
| 9865 | 9865 |
| 9866 // This should not be called by anyone except GC. | 9866 // This should not be called by anyone except GC. |
| 9867 inline void clear(); | 9867 inline void clear(); |
| 9868 | 9868 |
| 9869 inline void unchecked_clear(); |
| 9870 |
| 9869 // This should not be called by anyone except allocator. | 9871 // This should not be called by anyone except allocator. |
| 9870 inline void initialize(HeapObject* value); | 9872 inline void initialize(HeapObject* value); |
| 9871 | 9873 |
| 9872 inline bool cleared() const; | 9874 inline bool cleared() const; |
| 9873 | 9875 |
| 9874 DECL_ACCESSORS(next, Object) | 9876 DECL_ACCESSORS(next, Object) |
| 9875 | 9877 |
| 9876 DECLARE_CAST(WeakCell) | 9878 DECLARE_CAST(WeakCell) |
| 9877 | 9879 |
| 9878 DECLARE_PRINTER(WeakCell) | 9880 DECLARE_PRINTER(WeakCell) |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11089 } else { | 11091 } else { |
| 11090 value &= ~(1 << bit_position); | 11092 value &= ~(1 << bit_position); |
| 11091 } | 11093 } |
| 11092 return value; | 11094 return value; |
| 11093 } | 11095 } |
| 11094 }; | 11096 }; |
| 11095 | 11097 |
| 11096 } } // namespace v8::internal | 11098 } } // namespace v8::internal |
| 11097 | 11099 |
| 11098 #endif // V8_OBJECTS_H_ | 11100 #endif // V8_OBJECTS_H_ |
| OLD | NEW |