| 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 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 inline void set_map_no_write_barrier(Map* value); | 1706 inline void set_map_no_write_barrier(Map* value); |
| 1707 | 1707 |
| 1708 // During garbage collection, the map word of a heap object does not | 1708 // During garbage collection, the map word of a heap object does not |
| 1709 // necessarily contain a map pointer. | 1709 // necessarily contain a map pointer. |
| 1710 inline MapWord map_word(); | 1710 inline MapWord map_word(); |
| 1711 inline void set_map_word(MapWord map_word); | 1711 inline void set_map_word(MapWord map_word); |
| 1712 | 1712 |
| 1713 // The Heap the object was allocated in. Used also to access Isolate. | 1713 // The Heap the object was allocated in. Used also to access Isolate. |
| 1714 inline Heap* GetHeap(); | 1714 inline Heap* GetHeap(); |
| 1715 | 1715 |
| 1716 // Convenience method to get current isolate. This method can be | 1716 // Convenience method to get current isolate. |
| 1717 // accessed only when its result is the same as | |
| 1718 // Isolate::Current(), it ASSERTs this. See also comment for GetHeap. | |
| 1719 inline Isolate* GetIsolate(); | 1717 inline Isolate* GetIsolate(); |
| 1720 | 1718 |
| 1721 // Converts an address to a HeapObject pointer. | 1719 // Converts an address to a HeapObject pointer. |
| 1722 static inline HeapObject* FromAddress(Address address); | 1720 static inline HeapObject* FromAddress(Address address); |
| 1723 | 1721 |
| 1724 // Returns the address of this HeapObject. | 1722 // Returns the address of this HeapObject. |
| 1725 inline Address address(); | 1723 inline Address address(); |
| 1726 | 1724 |
| 1727 // Iterates over pointers contained in the object (including the Map) | 1725 // Iterates over pointers contained in the object (including the Map) |
| 1728 void Iterate(ObjectVisitor* v); | 1726 void Iterate(ObjectVisitor* v); |
| (...skipping 8448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10177 } else { | 10175 } else { |
| 10178 value &= ~(1 << bit_position); | 10176 value &= ~(1 << bit_position); |
| 10179 } | 10177 } |
| 10180 return value; | 10178 return value; |
| 10181 } | 10179 } |
| 10182 }; | 10180 }; |
| 10183 | 10181 |
| 10184 } } // namespace v8::internal | 10182 } } // namespace v8::internal |
| 10185 | 10183 |
| 10186 #endif // V8_OBJECTS_H_ | 10184 #endif // V8_OBJECTS_H_ |
| OLD | NEW |