Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: src/heap/heap.h

Issue 652543007: Add support for a target new space size (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // the young generation, we reserve 4 times the amount needed for a 559 // the young generation, we reserve 4 times the amount needed for a
560 // semi space. The young generation consists of two semi spaces and 560 // semi space. The young generation consists of two semi spaces and
561 // we reserve twice the amount needed for those in order to ensure 561 // we reserve twice the amount needed for those in order to ensure
562 // that new space can be aligned to its size. 562 // that new space can be aligned to its size.
563 intptr_t MaxReserved() { 563 intptr_t MaxReserved() {
564 return 4 * reserved_semispace_size_ + max_old_generation_size_; 564 return 4 * reserved_semispace_size_ + max_old_generation_size_;
565 } 565 }
566 int MaxSemiSpaceSize() { return max_semi_space_size_; } 566 int MaxSemiSpaceSize() { return max_semi_space_size_; }
567 int ReservedSemiSpaceSize() { return reserved_semispace_size_; } 567 int ReservedSemiSpaceSize() { return reserved_semispace_size_; }
568 int InitialSemiSpaceSize() { return initial_semispace_size_; } 568 int InitialSemiSpaceSize() { return initial_semispace_size_; }
569 int TargetSemiSpaceSize() { return target_semispace_size_; }
569 intptr_t MaxOldGenerationSize() { return max_old_generation_size_; } 570 intptr_t MaxOldGenerationSize() { return max_old_generation_size_; }
570 intptr_t MaxExecutableSize() { return max_executable_size_; } 571 intptr_t MaxExecutableSize() { return max_executable_size_; }
571 572
572 // Returns the capacity of the heap in bytes w/o growing. Heap grows when 573 // Returns the capacity of the heap in bytes w/o growing. Heap grows when
573 // more spaces are needed until it reaches the limit. 574 // more spaces are needed until it reaches the limit.
574 intptr_t Capacity(); 575 intptr_t Capacity();
575 576
576 // Returns the amount of memory currently committed for the heap. 577 // Returns the amount of memory currently committed for the heap.
577 intptr_t CommittedMemory(); 578 intptr_t CommittedMemory();
578 579
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 // This can be calculated directly from a pointer to the heap; however, it is 1462 // This can be calculated directly from a pointer to the heap; however, it is
1462 // more expedient to get at the isolate directly from within Heap methods. 1463 // more expedient to get at the isolate directly from within Heap methods.
1463 Isolate* isolate_; 1464 Isolate* isolate_;
1464 1465
1465 Object* roots_[kRootListLength]; 1466 Object* roots_[kRootListLength];
1466 1467
1467 size_t code_range_size_; 1468 size_t code_range_size_;
1468 int reserved_semispace_size_; 1469 int reserved_semispace_size_;
1469 int max_semi_space_size_; 1470 int max_semi_space_size_;
1470 int initial_semispace_size_; 1471 int initial_semispace_size_;
1472 int target_semispace_size_;
1471 intptr_t max_old_generation_size_; 1473 intptr_t max_old_generation_size_;
1472 intptr_t max_executable_size_; 1474 intptr_t max_executable_size_;
1473 intptr_t maximum_committed_; 1475 intptr_t maximum_committed_;
1474 1476
1475 // For keeping track of how much data has survived 1477 // For keeping track of how much data has survived
1476 // scavenge since last new space expansion. 1478 // scavenge since last new space expansion.
1477 int survived_since_last_expansion_; 1479 int survived_since_last_expansion_;
1478 1480
1479 // For keeping track on when to flush RegExp code. 1481 // For keeping track on when to flush RegExp code.
1480 int sweep_generation_; 1482 int sweep_generation_;
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2542 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2541 2543
2542 private: 2544 private:
2543 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2545 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2544 }; 2546 };
2545 #endif // DEBUG 2547 #endif // DEBUG
2546 } 2548 }
2547 } // namespace v8::internal 2549 } // namespace v8::internal
2548 2550
2549 #endif // V8_HEAP_HEAP_H_ 2551 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698