| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 inline void set_map(Map* value); | 1003 inline void set_map(Map* value); |
| 1004 | 1004 |
| 1005 // During garbage collection, the map word of a heap object does not | 1005 // During garbage collection, the map word of a heap object does not |
| 1006 // necessarily contain a map pointer. | 1006 // necessarily contain a map pointer. |
| 1007 inline MapWord map_word(); | 1007 inline MapWord map_word(); |
| 1008 inline void set_map_word(MapWord map_word); | 1008 inline void set_map_word(MapWord map_word); |
| 1009 | 1009 |
| 1010 // The Heap the object was allocated in. Used also to access Isolate. | 1010 // The Heap the object was allocated in. Used also to access Isolate. |
| 1011 // This method can not be used during GC, it ASSERTs this. | 1011 // This method can not be used during GC, it ASSERTs this. |
| 1012 inline Heap* GetHeap(); | 1012 inline Heap* GetHeap(); |
| 1013 // Convenience method to get current isolate. This method can be |
| 1014 // accessed only when its result is the same as |
| 1015 // Isolate::Current(), it ASSERTs this. See also comment for GetHeap. |
| 1016 inline Isolate* GetIsolate(); |
| 1013 | 1017 |
| 1014 // Converts an address to a HeapObject pointer. | 1018 // Converts an address to a HeapObject pointer. |
| 1015 static inline HeapObject* FromAddress(Address address); | 1019 static inline HeapObject* FromAddress(Address address); |
| 1016 | 1020 |
| 1017 // Returns the address of this HeapObject. | 1021 // Returns the address of this HeapObject. |
| 1018 inline Address address(); | 1022 inline Address address(); |
| 1019 | 1023 |
| 1020 // Iterates over pointers contained in the object (including the Map) | 1024 // Iterates over pointers contained in the object (including the Map) |
| 1021 void Iterate(ObjectVisitor* v); | 1025 void Iterate(ObjectVisitor* v); |
| 1022 | 1026 |
| (...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5584 } else { | 5588 } else { |
| 5585 value &= ~(1 << bit_position); | 5589 value &= ~(1 << bit_position); |
| 5586 } | 5590 } |
| 5587 return value; | 5591 return value; |
| 5588 } | 5592 } |
| 5589 }; | 5593 }; |
| 5590 | 5594 |
| 5591 } } // namespace v8::internal | 5595 } } // namespace v8::internal |
| 5592 | 5596 |
| 5593 #endif // V8_OBJECTS_H_ | 5597 #endif // V8_OBJECTS_H_ |
| OLD | NEW |