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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 // Returns the capacity of the heap in bytes w/o growing. Heap grows when | 479 // Returns the capacity of the heap in bytes w/o growing. Heap grows when |
480 // more spaces are needed until it reaches the limit. | 480 // more spaces are needed until it reaches the limit. |
481 intptr_t Capacity(); | 481 intptr_t Capacity(); |
482 | 482 |
483 // Returns the amount of memory currently committed for the heap. | 483 // Returns the amount of memory currently committed for the heap. |
484 intptr_t CommittedMemory(); | 484 intptr_t CommittedMemory(); |
485 | 485 |
486 // Returns the amount of executable memory currently committed for the heap. | 486 // Returns the amount of executable memory currently committed for the heap. |
487 intptr_t CommittedMemoryExecutable(); | 487 intptr_t CommittedMemoryExecutable(); |
488 | 488 |
| 489 // Returns the amount of phyical memory currently committed for the heap. |
| 490 size_t CommittedPhysicalMemory(); |
| 491 |
489 // Returns the available bytes in space w/o growing. | 492 // Returns the available bytes in space w/o growing. |
490 // Heap doesn't guarantee that it can allocate an object that requires | 493 // Heap doesn't guarantee that it can allocate an object that requires |
491 // all available bytes. Check MaxHeapObjectSize() instead. | 494 // all available bytes. Check MaxHeapObjectSize() instead. |
492 intptr_t Available(); | 495 intptr_t Available(); |
493 | 496 |
494 // Returns of size of all objects residing in the heap. | 497 // Returns of size of all objects residing in the heap. |
495 intptr_t SizeOfObjects(); | 498 intptr_t SizeOfObjects(); |
496 | 499 |
497 // Return the starting address and a mask for the new space. And-masking an | 500 // Return the starting address and a mask for the new space. And-masking an |
498 // address with the mask will result in the start address of the new space | 501 // address with the mask will result in the start address of the new space |
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2796 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2794 | 2797 |
2795 private: | 2798 private: |
2796 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2799 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2797 }; | 2800 }; |
2798 #endif // DEBUG || LIVE_OBJECT_LIST | 2801 #endif // DEBUG || LIVE_OBJECT_LIST |
2799 | 2802 |
2800 } } // namespace v8::internal | 2803 } } // namespace v8::internal |
2801 | 2804 |
2802 #endif // V8_HEAP_H_ | 2805 #endif // V8_HEAP_H_ |
OLD | NEW |