| 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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1447     } | 1447     } | 
| 1448 #endif | 1448 #endif | 
| 1449     DeleteArray(snapshot_log); | 1449     DeleteArray(snapshot_log); | 
| 1450   } | 1450   } | 
| 1451 } | 1451 } | 
| 1452 | 1452 | 
| 1453 | 1453 | 
| 1454 static void InitPagedSpace(PagedSpace* space, | 1454 static void InitPagedSpace(PagedSpace* space, | 
| 1455                            int capacity, | 1455                            int capacity, | 
| 1456                            List<Page*>* page_list) { | 1456                            List<Page*>* page_list) { | 
| 1457   space->EnsureCapacity(capacity); | 1457   if (!space->EnsureCapacity(capacity)) { | 
| 1458   // TODO(1240712): PagedSpace::EnsureCapacity can return false due to | 1458     V8::FatalProcessOutOfMemory("InitPagedSpace"); | 
| 1459   // a failure to allocate from the OS to expand the space. | 1459   } | 
| 1460   PageIterator it(space, PageIterator::ALL_PAGES); | 1460   PageIterator it(space, PageIterator::ALL_PAGES); | 
| 1461   while (it.has_next()) page_list->Add(it.next()); | 1461   while (it.has_next()) page_list->Add(it.next()); | 
| 1462 } | 1462 } | 
| 1463 | 1463 | 
| 1464 | 1464 | 
| 1465 void Deserializer::GetHeader() { | 1465 void Deserializer::GetHeader() { | 
| 1466   reader_.ExpectC('D'); | 1466   reader_.ExpectC('D'); | 
| 1467 #ifdef DEBUG | 1467 #ifdef DEBUG | 
| 1468   expect_debug_information_ = reader_.GetC() == '1'; | 1468   expect_debug_information_ = reader_.GetC() == '1'; | 
| 1469 #else | 1469 #else | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1653         ASSERT(index < large_objects_.length()); | 1653         ASSERT(index < large_objects_.length()); | 
| 1654       } | 1654       } | 
| 1655       return large_objects_[index];  // s.page_offset() is ignored. | 1655       return large_objects_[index];  // s.page_offset() is ignored. | 
| 1656   } | 1656   } | 
| 1657   UNREACHABLE(); | 1657   UNREACHABLE(); | 
| 1658   return NULL; | 1658   return NULL; | 
| 1659 } | 1659 } | 
| 1660 | 1660 | 
| 1661 | 1661 | 
| 1662 } }  // namespace v8::internal | 1662 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|