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

Side by Side Diff: src/heap.h

Issue 11023010: Revert r12625 due to sandbox incompatibility. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/api.cc ('k') | src/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 // 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Returns the capacity of the heap in bytes w/o growing. Heap grows when 479 // Returns the capacity of the heap in bytes w/o growing. Heap grows when
480 // more spaces are needed until it reaches the limit. 480 // more spaces are needed until it reaches the limit.
481 intptr_t Capacity(); 481 intptr_t Capacity();
482 482
483 // Returns the amount of memory currently committed for the heap. 483 // Returns the amount of memory currently committed for the heap.
484 intptr_t CommittedMemory(); 484 intptr_t CommittedMemory();
485 485
486 // Returns the amount of executable memory currently committed for the heap. 486 // Returns the amount of executable memory currently committed for the heap.
487 intptr_t CommittedMemoryExecutable(); 487 intptr_t CommittedMemoryExecutable();
488 488
489 // Returns the amount of phyical memory currently committed for the heap.
490 size_t CommittedPhysicalMemory();
491
492 // Returns the available bytes in space w/o growing. 489 // Returns the available bytes in space w/o growing.
493 // Heap doesn't guarantee that it can allocate an object that requires 490 // Heap doesn't guarantee that it can allocate an object that requires
494 // all available bytes. Check MaxHeapObjectSize() instead. 491 // all available bytes. Check MaxHeapObjectSize() instead.
495 intptr_t Available(); 492 intptr_t Available();
496 493
497 // Returns of size of all objects residing in the heap. 494 // Returns of size of all objects residing in the heap.
498 intptr_t SizeOfObjects(); 495 intptr_t SizeOfObjects();
499 496
500 // Return the starting address and a mask for the new space. And-masking an 497 // Return the starting address and a mask for the new space. And-masking an
501 // address with the mask will result in the start address of the new space 498 // address with the mask will result in the start address of the new space
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2793 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2797 2794
2798 private: 2795 private:
2799 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2796 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2800 }; 2797 };
2801 #endif // DEBUG || LIVE_OBJECT_LIST 2798 #endif // DEBUG || LIVE_OBJECT_LIST
2802 2799
2803 } } // namespace v8::internal 2800 } } // namespace v8::internal
2804 2801
2805 #endif // V8_HEAP_H_ 2802 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698