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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); | 1303 void IterateWeakRoots(ObjectVisitor* v, VisitMode mode); |
1304 | 1304 |
1305 // Iterate pointers to from semispace of new space found in memory interval | 1305 // Iterate pointers to from semispace of new space found in memory interval |
1306 // from start to end. | 1306 // from start to end. |
1307 void IterateAndMarkPointersToFromSpace(Address start, | 1307 void IterateAndMarkPointersToFromSpace(Address start, |
1308 Address end, | 1308 Address end, |
1309 ObjectSlotCallback callback); | 1309 ObjectSlotCallback callback); |
1310 | 1310 |
1311 // Returns whether the object resides in new space. | 1311 // Returns whether the object resides in new space. |
1312 inline bool InNewSpace(Object* object); | 1312 inline bool InNewSpace(Object* object); |
1313 inline bool InNewSpace(Address addr); | 1313 inline bool InNewSpace(Address address); |
1314 inline bool InNewSpacePage(Address addr); | 1314 inline bool InNewSpacePage(Address address); |
1315 inline bool InFromSpace(Object* object); | 1315 inline bool InFromSpace(Object* object); |
1316 inline bool InToSpace(Object* object); | 1316 inline bool InToSpace(Object* object); |
1317 | 1317 |
| 1318 // Returns whether the object resides in old pointer space. |
| 1319 inline bool InOldPointerSpace(Address address); |
| 1320 inline bool InOldPointerSpace(Object* object); |
| 1321 |
1318 // Checks whether an address/object in the heap (including auxiliary | 1322 // Checks whether an address/object in the heap (including auxiliary |
1319 // area and unused area). | 1323 // area and unused area). |
1320 bool Contains(Address addr); | 1324 bool Contains(Address addr); |
1321 bool Contains(HeapObject* value); | 1325 bool Contains(HeapObject* value); |
1322 | 1326 |
1323 // Checks whether an address/object in a space. | 1327 // Checks whether an address/object in a space. |
1324 // Currently used by tests, serialization and heap verification only. | 1328 // Currently used by tests, serialization and heap verification only. |
1325 bool InSpace(Address addr, AllocationSpace space); | 1329 bool InSpace(Address addr, AllocationSpace space); |
1326 bool InSpace(HeapObject* value, AllocationSpace space); | 1330 bool InSpace(HeapObject* value, AllocationSpace space); |
1327 | 1331 |
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2997 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2994 | 2998 |
2995 private: | 2999 private: |
2996 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3000 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2997 }; | 3001 }; |
2998 #endif // DEBUG | 3002 #endif // DEBUG |
2999 | 3003 |
3000 } } // namespace v8::internal | 3004 } } // namespace v8::internal |
3001 | 3005 |
3002 #endif // V8_HEAP_H_ | 3006 #endif // V8_HEAP_H_ |
OLD | NEW |