| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 523 |
| 524 int gc_count() { return gc_count_; } |
| 525 Address gc_count_address() { return reinterpret_cast<Address>(&gc_count_); } |
| 526 |
| 524 // Returns the capacity of the heap in bytes w/o growing. Heap grows when | 527 // Returns the capacity of the heap in bytes w/o growing. Heap grows when |
| 525 // more spaces are needed until it reaches the limit. | 528 // more spaces are needed until it reaches the limit. |
| 526 intptr_t Capacity(); | 529 intptr_t Capacity(); |
| 527 | 530 |
| 528 // Returns the amount of memory currently committed for the heap. | 531 // Returns the amount of memory currently committed for the heap. |
| 529 intptr_t CommittedMemory(); | 532 intptr_t CommittedMemory(); |
| 530 | 533 |
| 531 // Returns the amount of executable memory currently committed for the heap. | 534 // Returns the amount of executable memory currently committed for the heap. |
| 532 intptr_t CommittedMemoryExecutable(); | 535 intptr_t CommittedMemoryExecutable(); |
| 533 | 536 |
| (...skipping 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3026 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3029 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 3027 | 3030 |
| 3028 private: | 3031 private: |
| 3029 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3032 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3030 }; | 3033 }; |
| 3031 #endif // DEBUG | 3034 #endif // DEBUG |
| 3032 | 3035 |
| 3033 } } // namespace v8::internal | 3036 } } // namespace v8::internal |
| 3034 | 3037 |
| 3035 #endif // V8_HEAP_H_ | 3038 #endif // V8_HEAP_H_ |
| OLD | NEW |