| 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 static void Verify(); | 726 static void Verify(); |
| 727 | 727 |
| 728 // Report heap statistics. | 728 // Report heap statistics. |
| 729 static void ReportHeapStatistics(const char* title); | 729 static void ReportHeapStatistics(const char* title); |
| 730 static void ReportCodeStatistics(const char* title); | 730 static void ReportCodeStatistics(const char* title); |
| 731 | 731 |
| 732 // Fill in bogus values in from space | 732 // Fill in bogus values in from space |
| 733 static void ZapFromSpace(); | 733 static void ZapFromSpace(); |
| 734 #endif | 734 #endif |
| 735 | 735 |
| 736 #if defined(ENABLE_LOGGING_AND_PROFILING) |
| 737 // Print short heap statistics. |
| 738 static void PrintShortHeapStatistics(); |
| 739 #endif |
| 740 |
| 736 // Makes a new symbol object | 741 // Makes a new symbol object |
| 737 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 742 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 738 // failed. | 743 // failed. |
| 739 // Please note this function does not perform a garbage collection. | 744 // Please note this function does not perform a garbage collection. |
| 740 static Object* CreateSymbol(const char* str, int length, int hash); | 745 static Object* CreateSymbol(const char* str, int length, int hash); |
| 741 static Object* CreateSymbol(String* str); | 746 static Object* CreateSymbol(String* str); |
| 742 | 747 |
| 743 // Write barrier support for address[offset] = o. | 748 // Write barrier support for address[offset] = o. |
| 744 inline static void RecordWrite(Address address, int offset); | 749 inline static void RecordWrite(Address address, int offset); |
| 745 | 750 |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 int marked_count_; | 1464 int marked_count_; |
| 1460 | 1465 |
| 1461 // The count from the end of the previous full GC. Will be zero if there | 1466 // The count from the end of the previous full GC. Will be zero if there |
| 1462 // was no previous full GC. | 1467 // was no previous full GC. |
| 1463 int previous_marked_count_; | 1468 int previous_marked_count_; |
| 1464 }; | 1469 }; |
| 1465 | 1470 |
| 1466 } } // namespace v8::internal | 1471 } } // namespace v8::internal |
| 1467 | 1472 |
| 1468 #endif // V8_HEAP_H_ | 1473 #endif // V8_HEAP_H_ |
| OLD | NEW |