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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 // we reserve twice the amount needed for those in order to ensure | 513 // we reserve twice the amount needed for those in order to ensure |
514 // that new space can be aligned to its size. | 514 // that new space can be aligned to its size. |
515 intptr_t MaxReserved() { | 515 intptr_t MaxReserved() { |
516 return 4 * reserved_semispace_size_ + max_old_generation_size_; | 516 return 4 * reserved_semispace_size_ + max_old_generation_size_; |
517 } | 517 } |
518 int MaxSemiSpaceSize() { return max_semispace_size_; } | 518 int MaxSemiSpaceSize() { return max_semispace_size_; } |
519 int ReservedSemiSpaceSize() { return reserved_semispace_size_; } | 519 int ReservedSemiSpaceSize() { return reserved_semispace_size_; } |
520 int InitialSemiSpaceSize() { return initial_semispace_size_; } | 520 int InitialSemiSpaceSize() { return initial_semispace_size_; } |
521 intptr_t MaxOldGenerationSize() { return max_old_generation_size_; } | 521 intptr_t MaxOldGenerationSize() { return max_old_generation_size_; } |
522 intptr_t MaxExecutableSize() { return max_executable_size_; } | 522 intptr_t MaxExecutableSize() { return max_executable_size_; } |
| 523 int MaxNewSpaceAllocationSize() { return InitialSemiSpaceSize() * 3/4; } |
523 | 524 |
524 // Returns the capacity of the heap in bytes w/o growing. Heap grows when | 525 // Returns the capacity of the heap in bytes w/o growing. Heap grows when |
525 // more spaces are needed until it reaches the limit. | 526 // more spaces are needed until it reaches the limit. |
526 intptr_t Capacity(); | 527 intptr_t Capacity(); |
527 | 528 |
528 // Returns the amount of memory currently committed for the heap. | 529 // Returns the amount of memory currently committed for the heap. |
529 intptr_t CommittedMemory(); | 530 intptr_t CommittedMemory(); |
530 | 531 |
531 // Returns the amount of executable memory currently committed for the heap. | 532 // Returns the amount of executable memory currently committed for the heap. |
532 intptr_t CommittedMemoryExecutable(); | 533 intptr_t CommittedMemoryExecutable(); |
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2994 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2994 | 2995 |
2995 private: | 2996 private: |
2996 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2997 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2997 }; | 2998 }; |
2998 #endif // DEBUG | 2999 #endif // DEBUG |
2999 | 3000 |
3000 } } // namespace v8::internal | 3001 } } // namespace v8::internal |
3001 | 3002 |
3002 #endif // V8_HEAP_H_ | 3003 #endif // V8_HEAP_H_ |
OLD | NEW |