| OLD | NEW | 
|     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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   634  |   634  | 
|   635   // Initializes pages in a chunk. Returns the first page address. |   635   // Initializes pages in a chunk. Returns the first page address. | 
|   636   // This function and GetChunkId() are provided for the mark-compact |   636   // This function and GetChunkId() are provided for the mark-compact | 
|   637   // collector to rebuild page headers in the from space, which is |   637   // collector to rebuild page headers in the from space, which is | 
|   638   // used as a marking stack and its page headers are destroyed. |   638   // used as a marking stack and its page headers are destroyed. | 
|   639   static Page* InitializePagesInChunk(int chunk_id, int pages_in_chunk, |   639   static Page* InitializePagesInChunk(int chunk_id, int pages_in_chunk, | 
|   640                                       PagedSpace* owner); |   640                                       PagedSpace* owner); | 
|   641  |   641  | 
|   642   static Page* RelinkPagesInChunk(int chunk_id, |   642   static Page* RelinkPagesInChunk(int chunk_id, | 
|   643                                   Address chunk_start, |   643                                   Address chunk_start, | 
|   644                                   int chunk_size, |   644                                   size_t chunk_size, | 
|   645                                   Page* prev, |   645                                   Page* prev, | 
|   646                                   Page** last_page_in_use); |   646                                   Page** last_page_in_use); | 
|   647 }; |   647 }; | 
|   648  |   648  | 
|   649  |   649  | 
|   650 // ----------------------------------------------------------------------------- |   650 // ----------------------------------------------------------------------------- | 
|   651 // Interface for heap object iterator to be implemented by all object space |   651 // Interface for heap object iterator to be implemented by all object space | 
|   652 // object iterators. |   652 // object iterators. | 
|   653 // |   653 // | 
|   654 // NOTE: The space specific object iterators also implements the own next() |   654 // NOTE: The space specific object iterators also implements the own next() | 
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2157  |  2157  | 
|  2158  private: |  2158  private: | 
|  2159   LargeObjectChunk* current_; |  2159   LargeObjectChunk* current_; | 
|  2160   HeapObjectCallback size_func_; |  2160   HeapObjectCallback size_func_; | 
|  2161 }; |  2161 }; | 
|  2162  |  2162  | 
|  2163  |  2163  | 
|  2164 } }  // namespace v8::internal |  2164 } }  // namespace v8::internal | 
|  2165  |  2165  | 
|  2166 #endif  // V8_SPACES_H_ |  2166 #endif  // V8_SPACES_H_ | 
| OLD | NEW |