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

Side by Side Diff: src/heap.h

Issue 11231: Flat string reader (Closed)
Patch Set: Created 12 years, 1 month 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
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/jsregexp.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 // Converts the given boolean condition to JavaScript boolean value. 571 // Converts the given boolean condition to JavaScript boolean value.
572 static Object* ToBoolean(bool condition) { 572 static Object* ToBoolean(bool condition) {
573 return condition ? true_value() : false_value(); 573 return condition ? true_value() : false_value();
574 } 574 }
575 575
576 // Code that should be run before and after each GC. Includes some 576 // Code that should be run before and after each GC. Includes some
577 // reporting/verification activities when compiled with DEBUG set. 577 // reporting/verification activities when compiled with DEBUG set.
578 static void GarbageCollectionPrologue(); 578 static void GarbageCollectionPrologue();
579 static void GarbageCollectionEpilogue(); 579 static void GarbageCollectionEpilogue();
580 580
581 // Code that should be executed after the garbage collection proper.
582 static void PostGarbageCollectionProcessing();
583
581 // Performs garbage collection operation. 584 // Performs garbage collection operation.
582 // Returns whether required_space bytes are available after the collection. 585 // Returns whether required_space bytes are available after the collection.
583 static bool CollectGarbage(int required_space, AllocationSpace space); 586 static bool CollectGarbage(int required_space, AllocationSpace space);
584 587
585 // Performs a full garbage collection. 588 // Performs a full garbage collection.
586 static void CollectAllGarbage(); 589 static void CollectAllGarbage();
587 590
588 // Utility to invoke the scavenger. This is needed in test code to 591 // Utility to invoke the scavenger. This is needed in test code to
589 // ensure correct callback for weak global handles. 592 // ensure correct callback for weak global handles.
590 static void PerformScavenge(); 593 static void PerformScavenge();
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 int marked_count_; 1262 int marked_count_;
1260 1263
1261 // The count from the end of the previous full GC. Will be zero if there 1264 // The count from the end of the previous full GC. Will be zero if there
1262 // was no previous full GC. 1265 // was no previous full GC.
1263 int previous_marked_count_; 1266 int previous_marked_count_;
1264 }; 1267 };
1265 1268
1266 } } // namespace v8::internal 1269 } } // namespace v8::internal
1267 1270
1268 #endif // V8_HEAP_H_ 1271 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698