OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 return String::cast(roots_[k##name##RootIndex]); \ | 722 return String::cast(roots_[k##name##RootIndex]); \ |
723 } | 723 } |
724 SYMBOL_LIST(SYMBOL_ACCESSOR) | 724 SYMBOL_LIST(SYMBOL_ACCESSOR) |
725 #undef SYMBOL_ACCESSOR | 725 #undef SYMBOL_ACCESSOR |
726 | 726 |
727 // The hidden_symbol is special because it is the empty string, but does | 727 // The hidden_symbol is special because it is the empty string, but does |
728 // not match the empty string. | 728 // not match the empty string. |
729 static String* hidden_symbol() { return hidden_symbol_; } | 729 static String* hidden_symbol() { return hidden_symbol_; } |
730 | 730 |
731 // Iterates over all roots in the heap. | 731 // Iterates over all roots in the heap. |
732 static void IterateRoots(ObjectVisitor* v); | 732 static void IterateRoots(ObjectVisitor* v, VisitMode mode); |
733 // Iterates over all strong roots in the heap. | 733 // Iterates over all strong roots in the heap. |
734 static void IterateStrongRoots(ObjectVisitor* v); | 734 static void IterateStrongRoots(ObjectVisitor* v, VisitMode mode); |
735 | 735 |
736 // Iterates remembered set of an old space. | 736 // Iterates remembered set of an old space. |
737 static void IterateRSet(PagedSpace* space, ObjectSlotCallback callback); | 737 static void IterateRSet(PagedSpace* space, ObjectSlotCallback callback); |
738 | 738 |
739 // Iterates a range of remembered set addresses starting with rset_start | 739 // Iterates a range of remembered set addresses starting with rset_start |
740 // corresponding to the range of allocated pointers | 740 // corresponding to the range of allocated pointers |
741 // [object_start, object_end). | 741 // [object_start, object_end). |
742 // Returns the number of bits that were set. | 742 // Returns the number of bits that were set. |
743 static int IterateRSetRange(Address object_start, | 743 static int IterateRSetRange(Address object_start, |
744 Address object_end, | 744 Address object_end, |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 } | 1638 } |
1639 static TranscendentalCache* caches_[kNumberOfCaches]; | 1639 static TranscendentalCache* caches_[kNumberOfCaches]; |
1640 Element elements_[kCacheSize]; | 1640 Element elements_[kCacheSize]; |
1641 Type type_; | 1641 Type type_; |
1642 }; | 1642 }; |
1643 | 1643 |
1644 | 1644 |
1645 } } // namespace v8::internal | 1645 } } // namespace v8::internal |
1646 | 1646 |
1647 #endif // V8_HEAP_H_ | 1647 #endif // V8_HEAP_H_ |
OLD | NEW |