| 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 526 |
| 527 // Returns the amount of memory currently committed for the heap. | 527 // Returns the amount of memory currently committed for the heap. |
| 528 intptr_t CommittedMemory(); | 528 intptr_t CommittedMemory(); |
| 529 | 529 |
| 530 // Returns the amount of executable memory currently committed for the heap. | 530 // Returns the amount of executable memory currently committed for the heap. |
| 531 intptr_t CommittedMemoryExecutable(); | 531 intptr_t CommittedMemoryExecutable(); |
| 532 | 532 |
| 533 // Returns the amount of phyical memory currently committed for the heap. | 533 // Returns the amount of phyical memory currently committed for the heap. |
| 534 size_t CommittedPhysicalMemory(); | 534 size_t CommittedPhysicalMemory(); |
| 535 | 535 |
| 536 // Returns the maximum amount of memory ever committed for the heap. |
| 537 intptr_t MaximumCommittedMemory() { return maximum_committed_; } |
| 538 |
| 539 // Updates the maximum committed memory for the heap. Should be called |
| 540 // whenever a space grows. |
| 541 void UpdateMaximumCommitted(); |
| 542 |
| 536 // Returns the available bytes in space w/o growing. | 543 // Returns the available bytes in space w/o growing. |
| 537 // Heap doesn't guarantee that it can allocate an object that requires | 544 // Heap doesn't guarantee that it can allocate an object that requires |
| 538 // all available bytes. Check MaxHeapObjectSize() instead. | 545 // all available bytes. Check MaxHeapObjectSize() instead. |
| 539 intptr_t Available(); | 546 intptr_t Available(); |
| 540 | 547 |
| 541 // Returns of size of all objects residing in the heap. | 548 // Returns of size of all objects residing in the heap. |
| 542 intptr_t SizeOfObjects(); | 549 intptr_t SizeOfObjects(); |
| 543 | 550 |
| 544 // Return the starting address and a mask for the new space. And-masking an | 551 // Return the starting address and a mask for the new space. And-masking an |
| 545 // address with the mask will result in the start address of the new space | 552 // address with the mask will result in the start address of the new space |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 Isolate* isolate_; | 1888 Isolate* isolate_; |
| 1882 | 1889 |
| 1883 Object* roots_[kRootListLength]; | 1890 Object* roots_[kRootListLength]; |
| 1884 | 1891 |
| 1885 intptr_t code_range_size_; | 1892 intptr_t code_range_size_; |
| 1886 int reserved_semispace_size_; | 1893 int reserved_semispace_size_; |
| 1887 int max_semispace_size_; | 1894 int max_semispace_size_; |
| 1888 int initial_semispace_size_; | 1895 int initial_semispace_size_; |
| 1889 intptr_t max_old_generation_size_; | 1896 intptr_t max_old_generation_size_; |
| 1890 intptr_t max_executable_size_; | 1897 intptr_t max_executable_size_; |
| 1898 intptr_t maximum_committed_; |
| 1891 | 1899 |
| 1892 // For keeping track of how much data has survived | 1900 // For keeping track of how much data has survived |
| 1893 // scavenge since last new space expansion. | 1901 // scavenge since last new space expansion. |
| 1894 int survived_since_last_expansion_; | 1902 int survived_since_last_expansion_; |
| 1895 | 1903 |
| 1896 // For keeping track on when to flush RegExp code. | 1904 // For keeping track on when to flush RegExp code. |
| 1897 int sweep_generation_; | 1905 int sweep_generation_; |
| 1898 | 1906 |
| 1899 int always_allocate_scope_depth_; | 1907 int always_allocate_scope_depth_; |
| 1900 int linear_allocation_scope_depth_; | 1908 int linear_allocation_scope_depth_; |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3078 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3071 | 3079 |
| 3072 private: | 3080 private: |
| 3073 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3081 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3074 }; | 3082 }; |
| 3075 #endif // DEBUG | 3083 #endif // DEBUG |
| 3076 | 3084 |
| 3077 } } // namespace v8::internal | 3085 } } // namespace v8::internal |
| 3078 | 3086 |
| 3079 #endif // V8_HEAP_H_ | 3087 #endif // V8_HEAP_H_ |
| OLD | NEW |