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

Side by Side Diff: src/heap.h

Issue 12114054: Supporting AllocationSiteInfo for Nested arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing a port compile failure Created 7 years, 9 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/handles.cc ('k') | src/hydrogen.h » ('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 // 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
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
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_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698