| 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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 // objects that still remain in the heap). As implementation of free | 1947 // objects that still remain in the heap). As implementation of free |
| 1948 // nodes filtering uses GC marks, it can't be used during MS/MC GC | 1948 // nodes filtering uses GC marks, it can't be used during MS/MC GC |
| 1949 // phases. Also, it is forbidden to interrupt iteration in this mode, | 1949 // phases. Also, it is forbidden to interrupt iteration in this mode, |
| 1950 // as this will leave heap objects marked (and thus, unusable). | 1950 // as this will leave heap objects marked (and thus, unusable). |
| 1951 class HeapObjectsFilter; | 1951 class HeapObjectsFilter; |
| 1952 | 1952 |
| 1953 class HeapIterator BASE_EMBEDDED { | 1953 class HeapIterator BASE_EMBEDDED { |
| 1954 public: | 1954 public: |
| 1955 enum HeapObjectsFiltering { | 1955 enum HeapObjectsFiltering { |
| 1956 kNoFiltering, | 1956 kNoFiltering, |
| 1957 kFilterFreeListNodes, | |
| 1958 kFilterUnreachable | 1957 kFilterUnreachable |
| 1959 }; | 1958 }; |
| 1960 | 1959 |
| 1961 HeapIterator(); | 1960 HeapIterator(); |
| 1962 explicit HeapIterator(HeapObjectsFiltering filtering); | 1961 explicit HeapIterator(HeapObjectsFiltering filtering); |
| 1963 ~HeapIterator(); | 1962 ~HeapIterator(); |
| 1964 | 1963 |
| 1965 HeapObject* next(); | 1964 HeapObject* next(); |
| 1966 void reset(); | 1965 void reset(); |
| 1967 | 1966 |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2468 | 2467 |
| 2469 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2468 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2470 }; | 2469 }; |
| 2471 #endif // DEBUG || LIVE_OBJECT_LIST | 2470 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2472 | 2471 |
| 2473 } } // namespace v8::internal | 2472 } } // namespace v8::internal |
| 2474 | 2473 |
| 2475 #undef HEAP | 2474 #undef HEAP |
| 2476 | 2475 |
| 2477 #endif // V8_HEAP_H_ | 2476 #endif // V8_HEAP_H_ |
| OLD | NEW |