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

Side by Side Diff: src/heap.h

Issue 173016: Add LowMemoryNotification to the API on Android platform.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 static void GarbageCollectionPrologue(); 619 static void GarbageCollectionPrologue();
620 static void GarbageCollectionEpilogue(); 620 static void GarbageCollectionEpilogue();
621 621
622 // Code that should be executed after the garbage collection proper. 622 // Code that should be executed after the garbage collection proper.
623 static void PostGarbageCollectionProcessing(); 623 static void PostGarbageCollectionProcessing();
624 624
625 // Performs garbage collection operation. 625 // Performs garbage collection operation.
626 // Returns whether required_space bytes are available after the collection. 626 // Returns whether required_space bytes are available after the collection.
627 static bool CollectGarbage(int required_space, AllocationSpace space); 627 static bool CollectGarbage(int required_space, AllocationSpace space);
628 628
629 // Performs a full garbage collection. 629 // Performs a full garbage collection. Force compaction if the second
Mads Ager (chromium) 2009/08/19 17:24:23 if the second parameter -> if the parameter
630 static void CollectAllGarbage(); 630 // parameter is true.
631 static void CollectAllGarbage(bool force_compaction = false);
631 632
632 // Performs a full garbage collection if a context has been disposed 633 // Performs a full garbage collection if a context has been disposed
633 // since the last time the check was performed. 634 // since the last time the check was performed.
634 static void CollectAllGarbageIfContextDisposed(); 635 static void CollectAllGarbageIfContextDisposed();
635 636
636 // Notify the heap that a context has been disposed. 637 // Notify the heap that a context has been disposed.
637 static void NotifyContextDisposed(); 638 static void NotifyContextDisposed();
638 639
639 // Utility to invoke the scavenger. This is needed in test code to 640 // Utility to invoke the scavenger. This is needed in test code to
640 // ensure correct callback for weak global handles. 641 // ensure correct callback for weak global handles.
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 int marked_count_; 1472 int marked_count_;
1472 1473
1473 // The count from the end of the previous full GC. Will be zero if there 1474 // The count from the end of the previous full GC. Will be zero if there
1474 // was no previous full GC. 1475 // was no previous full GC.
1475 int previous_marked_count_; 1476 int previous_marked_count_;
1476 }; 1477 };
1477 1478
1478 } } // namespace v8::internal 1479 } } // namespace v8::internal
1479 1480
1480 #endif // V8_HEAP_H_ 1481 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698