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