| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 // This interval is considered to belong to the map space. | 998 // This interval is considered to belong to the map space. |
| 999 static void IteratePointersFromMapsToNewSpace(Heap* heap, | 999 static void IteratePointersFromMapsToNewSpace(Heap* heap, |
| 1000 Address start, | 1000 Address start, |
| 1001 Address end, | 1001 Address end, |
| 1002 ObjectSlotCallback callback); | 1002 ObjectSlotCallback callback); |
| 1003 | 1003 |
| 1004 | 1004 |
| 1005 // Returns whether the object resides in new space. | 1005 // Returns whether the object resides in new space. |
| 1006 inline bool InNewSpace(Object* object); | 1006 inline bool InNewSpace(Object* object); |
| 1007 inline bool InNewSpace(Address addr); | 1007 inline bool InNewSpace(Address addr); |
| 1008 inline bool InNewSpacePage(Address addr); |
| 1008 inline bool InFromSpace(Object* object); | 1009 inline bool InFromSpace(Object* object); |
| 1009 inline bool InToSpace(Object* object); | 1010 inline bool InToSpace(Object* object); |
| 1010 | 1011 |
| 1011 // Checks whether an address/object in the heap (including auxiliary | 1012 // Checks whether an address/object in the heap (including auxiliary |
| 1012 // area and unused area). | 1013 // area and unused area). |
| 1013 bool Contains(Address addr); | 1014 bool Contains(Address addr); |
| 1014 bool Contains(HeapObject* value); | 1015 bool Contains(HeapObject* value); |
| 1015 | 1016 |
| 1016 // Checks whether an address/object in a space. | 1017 // Checks whether an address/object in a space. |
| 1017 // Currently used by tests, serialization and heap verification only. | 1018 // Currently used by tests, serialization and heap verification only. |
| (...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2344 | 2345 |
| 2345 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2346 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2346 }; | 2347 }; |
| 2347 #endif // DEBUG || LIVE_OBJECT_LIST | 2348 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2348 | 2349 |
| 2349 } } // namespace v8::internal | 2350 } } // namespace v8::internal |
| 2350 | 2351 |
| 2351 #undef HEAP | 2352 #undef HEAP |
| 2352 | 2353 |
| 2353 #endif // V8_HEAP_H_ | 2354 #endif // V8_HEAP_H_ |
| OLD | NEW |