| Index: src/heap.h
|
| ===================================================================
|
| --- src/heap.h (revision 5798)
|
| +++ src/heap.h (working copy)
|
| @@ -222,7 +222,9 @@
|
| public:
|
| // Configure heap size before setup. Return false if the heap has been
|
| // setup already.
|
| - static bool ConfigureHeap(int max_semispace_size, int max_old_gen_size);
|
| + static bool ConfigureHeap(int max_semispace_size,
|
| + int max_old_gen_size,
|
| + int max_executable_size);
|
| static bool ConfigureHeapDefault();
|
|
|
| // Initializes the global object heap. If create_heap_objects is true,
|
| @@ -253,6 +255,7 @@
|
| static int ReservedSemiSpaceSize() { return reserved_semispace_size_; }
|
| static int InitialSemiSpaceSize() { return initial_semispace_size_; }
|
| static intptr_t MaxOldGenerationSize() { return max_old_generation_size_; }
|
| + static intptr_t MaxExecutableSize() { return max_executable_size_; }
|
|
|
| // Returns the capacity of the heap in bytes w/o growing. Heap grows when
|
| // more spaces are needed until it reaches the limit.
|
| @@ -261,6 +264,9 @@
|
| // Returns the amount of memory currently committed for the heap.
|
| static intptr_t CommittedMemory();
|
|
|
| + // Returns the amount of executable memory currently committed for the heap.
|
| + static intptr_t CommittedMemoryExecutable();
|
| +
|
| // Returns the available bytes in space w/o growing.
|
| // Heap doesn't guarantee that it can allocate an object that requires
|
| // all available bytes. Check MaxHeapObjectSize() instead.
|
| @@ -1096,6 +1102,7 @@
|
| static int max_semispace_size_;
|
| static int initial_semispace_size_;
|
| static intptr_t max_old_generation_size_;
|
| + static intptr_t max_executable_size_;
|
| static intptr_t code_range_size_;
|
|
|
| // For keeping track of how much data has survived
|
|
|