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

Side by Side Diff: src/objects.h

Issue 18998004: Implemented lazy sweeping of new space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/mark-compact.cc ('k') | src/objects-inl.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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 static inline HeapObject* cast(Object* obj); 1448 static inline HeapObject* cast(Object* obj);
1449 1449
1450 // Return the write barrier mode for this. Callers of this function 1450 // Return the write barrier mode for this. Callers of this function
1451 // must be able to present a reference to an DisallowHeapAllocation 1451 // must be able to present a reference to an DisallowHeapAllocation
1452 // object as a sign that they are not going to use this function 1452 // object as a sign that they are not going to use this function
1453 // from code that allocates and thus invalidates the returned write 1453 // from code that allocates and thus invalidates the returned write
1454 // barrier mode. 1454 // barrier mode.
1455 inline WriteBarrierMode GetWriteBarrierMode( 1455 inline WriteBarrierMode GetWriteBarrierMode(
1456 const DisallowHeapAllocation& promise); 1456 const DisallowHeapAllocation& promise);
1457 1457
1458 // Set the map field of the object to NULL if contains a map.
1459 inline void ClearDeadObject();
titzer 2013/07/11 08:22:23 I don't think this method should live on the HeapO
Hannes Payer (out of office) 2013/07/11 08:43:10 Done.
1460
1458 // Dispatched behavior. 1461 // Dispatched behavior.
1459 void HeapObjectShortPrint(StringStream* accumulator); 1462 void HeapObjectShortPrint(StringStream* accumulator);
1460 #ifdef OBJECT_PRINT 1463 #ifdef OBJECT_PRINT
1461 inline void HeapObjectPrint() { 1464 inline void HeapObjectPrint() {
1462 HeapObjectPrint(stdout); 1465 HeapObjectPrint(stdout);
1463 } 1466 }
1464 void HeapObjectPrint(FILE* out); 1467 void HeapObjectPrint(FILE* out);
1465 void PrintHeader(FILE* out, const char* id); 1468 void PrintHeader(FILE* out, const char* id);
1466 #endif 1469 #endif
1467 DECLARE_VERIFIER(HeapObject) 1470 DECLARE_VERIFIER(HeapObject)
(...skipping 8342 matching lines...) Expand 10 before | Expand all | Expand 10 after
9810 } else { 9813 } else {
9811 value &= ~(1 << bit_position); 9814 value &= ~(1 << bit_position);
9812 } 9815 }
9813 return value; 9816 return value;
9814 } 9817 }
9815 }; 9818 };
9816 9819
9817 } } // namespace v8::internal 9820 } } // namespace v8::internal
9818 9821
9819 #endif // V8_OBJECTS_H_ 9822 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698